CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Regular Expressions: REGEXP not capturing $1 target: Edit Log


Sep 6, 2014, 7:13 AM

Views: 22874
REGEXP not capturing $1 target

I've tried umpteen combinations of stuff but can't seem to find what is wrong in the following REGEXP to capture the $1 target of ([0-9A-Z\/]+) which will ALWAYS start at position 33 in the line:


NOTE: For some reason the "." before the last \s will NOT display in this posting

Here is one data line format from the input file with the target being Q9XRX/P:

29.08.2014 1658    94832 XQR    Q9XRX/P           91     37 PXRU

The target may vary from 4 to 12 [0-9A-Z] with *possibly* a [\/] involved.

Thanks for any help!


(This post was edited by stuckinarut on Sep 6, 2014, 7:35 AM)

Edit Log:
Post edited by stuckinarut (User) on Sep 6, 2014, 7:14 AM
Post edited by stuckinarut (User) on Sep 6, 2014, 7:35 AM

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives