Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Regexp

0 views
Skip to first unread message

ma...@magic.g00net.org

unread,
May 28, 2004, 8:56:03 AM5/28/04
to begi...@perl.org
I have the following lines:

g00:~> perl -e '
$a = "aa** a";
$b = $a;
$b =~ qw/$b/;
print "Yes\n" if $a =~ /^$b/;
print $b'
Nested quantifiers in regex; marked by <-- HERE in m/^aa** <-- HERE a/ at
-e line 5.

Is there a way to make the regexp takes '$b' as string, because
I see the non characters are problem.

Thanks

-------------------------------------
This mail is from: <ma...@g00net.org>
-------------------------------------

0 new messages