Regexp
max4o_at_magic.g00net.org
Date: 05/28/04
- Next message: Charles K. Clarkson: "RE: max number of data within an array"
- Previous message: Rob Dixon: "Re: weird math"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 May 2004 15:56:03 +0300 (EEST) To: beginners@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: <max4o@g00net.org>
-------------------------------------
- Next message: Charles K. Clarkson: "RE: max number of data within an array"
- Previous message: Rob Dixon: "Re: weird math"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|