Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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' ) {

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://845445]
[Corion]: marto: No, a Sun Balcony, it was an ill-fated attempt to revive the Sparc series after the Pizzabox :)
[marto]: ah Sun, I sold my Pizzabox in around 2005
[Corion]: I used one at $work as a terminal, but those days are long gone by ;)
[marto]: I have an old IBM infowindow terminal to repurpose, I'll just wire a raspberry piz zero to the cable, providing access and wiFi :P
[marto]: the kids will love it
[Corion]: marto: Hehe ;) I've been toying with the idea of soldering an USB (-C) hub into a keyboard and making it a computer by slotting my phone into that :)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2018-03-21 11:20 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.