Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: regex: something...(!something)...something

by Roy Johnson (Monsignor)
on Jul 17, 2008 at 19:41 UTC ( [id://698429]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $x =~ s{(?<=<td>)((?:(?!<td>).)*)3((?:(?!</td>).)*)(?=</td>)}{$1a$2};
    
  2. or download this
    $x =~ s{(?<=<td>)         # Start match with open-tag
            (                 # Capture
    ...
             </td>            #  then a close-tag
            )}                # End lookahead and pattern
           {$1a}x;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-18 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found