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: [
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 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
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
--- 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
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]
> >
> >
> >
> >__