Hi JE, No, unfortunately not. I have to pass the "negated" RE as a new RE to the parsing program, so i'll have to come up with a "complement RE" for : ...
... Hmmm... here's what I have so far: # Looking for selected matches on a five character string # (What's the name of this string? What does it mean?) # 2...
J.E. Cripps
cycmn@...
Dec 1, 2004 10:21 am
20085
errata: #((CX) ( ([0-2]|[4-9]) \d{1})) | # match CX followed by # any digit except 3 #should be ((CX) (([0-2]|[4-9]) \d{2}) | # or end with (..) ...
J.E. Cripps
cycmn@...
Dec 1, 2004 11:02 am
20086
Hi JE, Yes i can follow your line of reasoning here, step by step building up the "negated" Regex'es. It is workable (actually more 'work' than 'able' to my...
Let's say I have a string that contains the following textwhich could be any length. " Yyyy. 0 Xxxxxx. 00000" I tried using the substr() without any success....
... everything I've seen indicates that there isn't any such feature, and the complementing a regexp tends to be laborious, messy or both ... the ^ should be...
J.E. Cripps
cycmn@...
Dec 1, 2004 1:42 pm
20089
Dear Allan, I think you are looking for: "(?!pattern)" A zero-width negative look-ahead assertion. For example "/foo(?!bar)/" matches any occurrence of "foo"...
I can't figure out what I'm doing wrong. When I run my script I get the file listing from the external file. Whats not happening is I want to read in the first...
Hi, Debugging is a skill learned by doing, so I am only going to give hints. For each filename, you are doing: open INFILE, "< $line" or die qq(Cannot open ...
Jonathan Paton
jepaton@...
Dec 1, 2004 3:51 pm
20093
... You are getting the contents of filename.in because you are printing it yourself with 'print "$line"'; You really shouldn't expect to see the contents of a...
Hi Jonathan , Yes indeed, i've reached the same conclusion. The (?!pattern) can solve the issue in as clean a way as it's probably possible with Regex'es. Eg: ...
Hello everyone: Hello I am doing a exercise which requires me to find out all the words that contains five vowels(a, e, I, o, u) from a text file. I wrote a...
... Your code's looking for something that has "aeiou" -- exactly like that. If you want something that'll look for either a, e, i, o, or u in each line, then...
... Another method would be something like: for a single word - /a\w?e\w?i\w?o\w?u/; for a line of text with any chars in between - /a.?e.?i.?o.?u/ Peace - Ron...
Ron Goral
subscriptions@...
Dec 3, 2004 12:56 am
20098
On Thu, 2 Dec 2004 18:55:25 -0600, Ron Goral ... But wouldn't those require that the vowels (a, e, i, o, u) are in that order? -- http://www.bloodpet.tk/ An...
... K. This one I tried first. ;P # All the vowels, not in order my $text = qq[Every good boy deserves favor.]; # All except a, not in order my $other =...
Ron Goral
subscriptions@...
Dec 3, 2004 1:35 am
20100
... Ummmmmmmmmmmm Good thing that wasn't production code. (weak smile). Please disregard this ill-considered contribution....
Ron Goral
subscriptions@...
Dec 3, 2004 1:39 am
20101
... Why use the /g modifier in an 'if'? The first match is all we need for truth. Other matches don't matter. Also $1 will never be true if the test fails. ...
... Correct about the g modifier. But, this is not a complete program, just an illustration of how to capture the match. What to do when it matches or not is...
Ron Goral
subscriptions@...
Dec 3, 2004 2:07 am
20103
... all five? or words with any selection (aaiio, aeeou, eeeio)? ... Hint: /cat/ will match "catalogue", "concatenate" "wildcat" ... this is IIRC perlrequick...
J.E. Cripps
cycmn@...
Dec 3, 2004 5:12 am
20104
Greetings! We need Testers/Implementors (C/C++, Unix shell scripting - Telecom background) for our client at Bangalore. About the company: Our client is...
I had this thought... (ok.. duct tape your collective heads, perl addicts!) i know this is not the correct way, but I was wondering if there was a way a open...
I had this thought... (ok.. duct tape your collective heads, perl addicts!) i know this is not the correct way, but I was wondering if there was a way a open...
I had this thought... (ok.. duct tape your collective heads, perl addicts!) i know this is not the correct way, but I was wondering if there was a way a open...
I had this thought... (ok.. duct tape your collective heads, perl addicts!) i know this is not the correct way, but I was wondering if there was a way a open...
I had this thought... (ok.. duct tape your collective heads, perl addicts!) i know this is not the correct way, but I was wondering if there was a way a open...
I had this thought... (ok.. duct tape your collective heads, perl addicts!) i know this is not the correct way, but I was wondering if there was a way a open...