Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Searching for a specific pattern.

by phenom (Chaplain)
on Jun 18, 2010 at 19:18 UTC ( #845445=note: print w/ replies, xml ) Need Help??


in reply to Searching for a specific pattern.

If you're looking for EXACTLY "LX", then just use 'eq':

if( $type eq 'LX' ) {


Comment on Re: Searching for a specific pattern.
Download Code
Re^2: Searching for a specific pattern.
by Anonymous Monk on Jun 18, 2010 at 19:20 UTC
    I can't use that, using XML::XPATH, I need to use regular expression for this.

      I don't see the relation between XPaths and regular expressions, but /^LX\z/ checks for exactly "LX".

      ( An XPath that checks the value of an attribute would look like /foo/bar[@type="LX"] )

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2015-07-06 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (74 votes), past polls