Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Regex to match with exclusions

by kroach (Pilgrim)
on Oct 01, 2015 at 15:03 UTC ( #1143563=note: print w/replies, xml ) Need Help??


in reply to Regex to match with exclusions

You can use look-behind assertions for that:

/ ([A-Z.]* (?<!DI\.PRODUCT\.HIERARCHY\.IMPORT\.) (?<!DI\.CATSETUP\.PRODUCT\.IMPORT\.) BO) /x
This will match only if the part behind 'BO' is not one of your special cases.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2020-10-23 11:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (238 votes). Check out past polls.

    Notices?