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

Re: regex help please

by Anonymous Monk
on Oct 27, 2006 at 18:38 UTC ( [id://580990]=note: print w/replies, xml ) Need Help??


in reply to regex help please

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: regex help please
by chargrill (Parson) on Oct 27, 2006 at 18:49 UTC

    -- for useless use of capturing parens, and also for backslashing < and >

    I'm also thinking there's something the OP left out of the specification, because of the stipulation about "must match the first but not the second", so your solution is likely incomplete.



    --chargrill
    s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
      Good call...this might do the trick (assuming Roxy is static)

      while(<DATA>) { chomp; $_ =~ s/rcvtime.*<0a>// unless /Roxy/; print "$_\n";; } __DATA__ rcvtime=2006102600322813316-sndtime=2006102600323042116-msgtext=FRM\3a +Matd<0a> rcvtime=2006102611373625516-sndtime=2006102611373640716-msgtext=FRM\3a +Roxy<0a>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-25 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found