Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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]: 1nickt: No, I'm using it with Windows 10, but with the 4k display, yes. It's a very nice build IMO, and relatively sturdy. Also, it got 8 or 9 on the ifixit repair scale, which I consider good
[Corion]: ... especially as I expect to have to replace the battery set in two or three years' time
[1nickt]: Nice. So happy that Dells are still user-repairable. Unusual these days.
[1nickt]: I will certainly not be buying any more Macs.
[Corion]: 1nickt: Yeah, or at least, I hopoe so ;)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2017-03-27 13:15 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.