Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Regex error when [] occurs in file.. ($1 vs. \1)

by almut (Canon)
on Mar 03, 2008 at 16:31 UTC ( [id://671674]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $temp =~ m/(\[0-9\])blah$1/;
    
  2. or download this
    $temp =~ m/(\[0-9\])blah\1/;
    
  3. or download this
    #!/usr/bin/perl
    
    ...
            print "didn't match\n";
        }
    }
    
  4. or download this
    [0-9]blah[0-9]  matched
    [0-9]blah6      didn't match
    
  5. or download this
    Use of uninitialized value in concatenation (.) or string at ./671663.
    +pl line 8.
    [0-9]blah[0-9]  matched
    [0-9]blah6      matched
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://671674]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-28 10:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found