Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Regex, query

by Ratazong (Prior)
on Jan 24, 2013 at 15:55 UTC ( #1015190=note: print w/ replies, xml ) Need Help??


in reply to Regex, query

It works for me. Are you sure there is a whitespace after E123456? If you are sure that the REF is the last element in the input, you might want to use a greedy capture instead: change  (.*?) to  (.*)

Alternatively, you could append a whitespace to your input before applying the regex ($reqtext .= " "; )

HTH, Rata


Comment on Re: Regex, query
Select or Download Code
Replies are listed 'Best First'.
Re^2: Regex, query
by dmsparts (Sexton) on Jan 24, 2013 at 16:13 UTC

    Thanks. adding the whitespace at the end did the trick.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2015-07-08 03:55 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 (94 votes), past polls