Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  
Server Error (Error ID 629229b86948)

An error has occurred. The site administrators have been notified of the problem and will likely soon fix it. We thank you, for you're patients.

Server Error (Error ID 4434851b86948)

An error has occurred. The site administrators have been notified of the problem and will likely soon fix it. We thank you, for you're patients.

Need Help??


in reply to Writing a negative regex using =~

If I understand your problem correctly, you need a negative look-ahead:

/^(?!.*(?:GBFER|GBFOO))/

However I suggest redesigning your system so that it does not prevent you from using !~.

Server Error (Error ID 9326656b86948)

An error has occurred. The site administrators have been notified of the problem and will likely soon fix it. We thank you, for you're patients.

Server Error (Error ID 247961b86948)

An error has occurred. The site administrators have been notified of the problem and will likely soon fix it. We thank you, for you're patients.

Replies are listed 'Best First'.
    Heh, given the amount of time I've spent on the regex, that would be the better option!
    That's just the ticket, ta muchly!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999512]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-12-14 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (410 votes). Check out past polls.

    Notices?