Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Help with negative look ahed

by LanX (Chancellor)
on Oct 18, 2012 at 20:24 UTC ( #999817=note: print w/replies, xml ) Need Help??


in reply to Help with negative look ahed

The chances for helpful answers are much higher, if you help us reading your post.

Please use markup for formatting.

Furthermore you could make your regex much clearer by using the x-flag, adding comments and outsourcing parts into well named variables, something like this:

$item = '(?:Item|ITEM)[Ss]?'; $punctuation = '(?:\.|\-|\:|\-|\,)'; m/ $item \s? $punctuation ... /x;

don't be too surprised if you can answer your question on your own after refactoring the code! ;-)

Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999817]
help
Chatterbox?
erix recommends Vanished Kingdoms
[Corion]: shmem: Yeah, something like that. Not that that would be a solved issue. Simply process all events that come in from a single interface sequentially. Ah well.
[Discipulus]: their

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2017-05-23 08:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?