Re: Who can help me to explain the reason? about regex `m' modifier.

2006-11-28 Thread Tom Phoenix
On 11/27/06, flw <[EMAIL PROTECTED]> wrote: $ perl -e '$_="a11\nb22\nc33\n"; print $_, "-"x15, "\n";s/^a.*^b.*/x/m; print' $ perl -e '$_="a11\nb22\nc33\n"; print $_, "-"x15, "\n";s/^a.*^b.*/x\n/ms; print' Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [

Re: Who can help me to explain the reason? about regex `m' modifier.

2006-11-28 Thread Adriano Ferreira
On 11/28/06, flw <[EMAIL PROTECTED]> wrote: Who cabeginnersn help me to explain the reason? $ perl -e '$_="a11\nb22\nc33\n"; print $_, "-"x15, "\n";s/^a.*^b.*/x/m; print' The problem here is that \m allows "^" to match after any newline within the string, but does not change "." which matches

Who can help me to explain the reason? about regex `m' modifier.

2006-11-28 Thread flw
Who cabeginnersn help me to explain the reason? $ perl -e '$_="a11\nb22\nc33\n"; print $_, "-"x15, "\n";s/^a.*^b.*/x/m; print' a11 b22 c33 --- a11 b22 c33 $ perl -e '$_="a11\nb22\nc33\n"; print $_, "-"x15, "\n";s/^a.*\cJ^b.*/x/m; print' a11 b22 c33 --- x c33 $ flw [EMAIL

who can help?

2002-09-29 Thread Mariusz
Hi, I know this is not a question about perl cgi but I don't know where to turn. I do most of my stuff using Macromedia's Dream and Fireworks. Does any of you use Fireworks? If so, how can I limit a hotspot to only one frame on a multiframe graphic? Thank you for any suggestions as to where I c

Re: who can help me?

2001-10-01 Thread Curtis Poe
--- joost rust <[EMAIL PROTECTED]> wrote: > > hi all, > > Why is it that my CPU usage goes up to 100% when I use 5 or more ".*?" in my > regexp? Like this: > > (Checking one HTML file!!) > > if ($txt =~ > m/.*?/is) > { > print "yeeha"; > } > > I don't need workarounds, just why? > > Ju

who can help me?

2001-10-01 Thread joost rust
hi all, Why is it that my CPU usage goes up to 100% when I use 5 or more ".*?" in my regexp? Like this: (Checking one HTML file!!) if ($txt =~ m/.*?/is) { print "yeeha"; } I don't need workarounds, just why? Juiced > >my email: > >[EMAIL PROTECTED] > > > > > > > >__