Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^4: Regex pattern that fails when string contains a certain pattern

by hoppfrosch (Scribe)
on Dec 22, 2016 at 09:49 UTC ( [id://1178349]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Regex pattern that fails when string contains a certain pattern
in thread Regex pattern that fails when string contains a certain pattern

I'm willing to provide code - but I have to write it first. I tested my pattern within a regex-testing GUI.

Replies are listed 'Best First'.
Re^5: Regex pattern that fails when string contains a certain pattern
by Corion (Patriarch) on Dec 22, 2016 at 09:51 UTC

    After you've added some more specifications, let me recommend that you don't use a single regular expression. While it is still possible to create a regular expression that matchess your description, three if statements convey your rules much better.

Log In?
Username:
Password:

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

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

    No recent polls found