Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Skipping special tags in regexes

by Abigail-II (Bishop)
on Dec 04, 2003 at 22:23 UTC ( [id://312344]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Skipping special tags in regexes
in thread Skipping special tags in regexes

Is there a reason you are using the /(??{ })/ code block other than just to make a more general solution?
Because I was expecting the OP to refine his question, and come up with a slightly different definition of a "word" (perhaps it needed trailing tags as well, or not more than 2 tags, whatever). Then I only need to change the sub, and not every regex using it.

I think my solution is more general than yours, but the effect is the same.

Abigail

Replies are listed 'Best First'.
Re:**3: Skipping special tags in regexes
by flounder99 (Friar) on Dec 05, 2003 at 14:15 UTC
    I assumed you were shooting for generality. I just wanted to know if there was a technical reason I was missing.

    --

    flounder

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-26 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found