Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: regexp w/ special chars

by davido (Cardinal)
on Aug 28, 2003 at 16:56 UTC ( #287447=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $string =~ s/\Q$token\E/$date/;
    
  2. or download this
    $test_string =~ s/\Q[A-Z]{3}\E([A-Z]{3})/$1/;
    
  3. or download this
    my $token = quotemeta ( '[DATE:%Y-%m-%d]' );
    
  4. or download this
    $string =~ s/$token/$date/;
    
  5. or download this
    my $token = '\[DATE:%Y-%m-%d\]';
    
  6. or download this
    $string =~ s/$token/$date/;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2021-06-19 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (93 votes). Check out past polls.

    Notices?