On 05/04/2013 04:37 PM, Rob Dixon wrote:
On 04/05/2013 14:26, Florian Huber wrote:
I'm parsing a logfile and don't quite understand the behaviour of m//.
From a previous regex match I have already captured $+{'GFP'}:
use strict;
use warnings;
(...)
$text =~ m/ (?FILTER
Hi all,
I'm parsing a logfile and don't quite understand the behaviour of m//.
From a previous regex match I have already captured $+{'GFP'}:
use strict;
use warnings;
(...)
$text =~ m/ (?FILTERS .*? WRT)/x;# I simply have my whole
logfile in $text - I know there are better solutions.
Ok, sorry for bothering you: when I tried renaming the file by hand I
found out that Windows simply doesn't allow ":" in filenames - Could've
thought about this earlier.
Cheers,
Florian
Am 24.04.2013 15:12, schrieb Florian Huber:
Hi all,
I want to rename all image files
Hi all,
I want to rename all image files in a folder to a new name, only the
number should be kept:
use strict;
use warnings;
use 5.014;
foreach my $file (glob "*.tif") {
$file =~ m/(\d\d?).tif/;
rename($file, "DAT:26032013--WEL:A2--ID:"."$1") || die("Could not
rename file: $!\n");
Flo
Original-Nachricht
> Datum: Tue, 2 Oct 2012 19:17:58 -0400
> Von: William Muriithi
> An: Florian Huber
> CC: beginners@perl.org
> Betreff: Re: Multiple matching of a group of characters
> Florian,
> >
> > The string is:
> >
>
all???
with ([AGCT]{5}) it works fine - it returns TGTTT.
This I found kinda strange - looks like I've got something with the
greediness/precedence wrong?
Thank you for your help!
Flo
On 02/10/2012 01:36, Brandon McCaig wrote:
On Mon, Oct 01, 2012 at 11:15:53PM +0100, Florian Huber w
Dear all,
I'm trying to extract a DNA sequence out of a larger string, i.e. the
string is of the following structure:
$string = "/NOTNEEDED/*ACGACGGGTTCAAGGCAG*/NOTNEEDED/"
But when I do
$string =~ /[ACGT]/;
it matches only the last letter, i.e. "G". Why doesn't it start at the
beginning?