in reply to Re: Is there a better way to write this RegEx?
in thread Is there a better way to write this RegEx?
Also, I guess I should have said I'm attempting to avoid .* ... learning experience, I guess. but, yes, this seems like a much more elegant solution then the one I had written by far.
I'm still trying to figure out why the .* doesn't grab the entire line ... because of the second .*, I guess?
And, I'm going to see if I can find rindex in the perldocs because, frankly, I've never seen/heard of it before. :)
- Erik
theAcolyte
ps. I know there are log parsers on CPAN, but I'm just mucking around ... i have a full script doing what I want and working just fine ... but I noticed how ugly my regEx was and wanted to see how to improve on it :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Is there a better way to write this RegEx?
by japhy (Canon) on Apr 20, 2004 at 13:10 UTC |