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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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



stuckinarut
User

Sep 6, 2014, 7:13 AM


Views: 22884
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:


Code
m/^[\s]{32}([0-9A-Z\/]+)[\s\n\r\t]+/


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:


Code
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!

-stuckinarutFrown


(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