What I am trying to do is lookahead and see it it's a number - if so great! Capture that number (this seems to work). If it's a series of dashes then copy the dashes. What happens now is that if it's not a number, the regex query just merrily skips on to someplace else in the file and grabs that number - sometimes 6 or 8 lines later in the file. And of course this unexpected grab is the wrong data entirely. From there the regex never seems to recover correctly.
|Regex to capture everything between two characters||6||76|
|Perl modules on linux ec2||3||95|
|regex code to filter this thip of combo email||42||60|
|Why would it print (?si-xm:my.STRING) instead of "my.STRING" and what does "?si-xm:" mean.||7||11|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
11 Experts available now in Live!