in reply to Re: Need method to create Regular expression for known pattern in the middle of a line
in thread Need method to create Regular expression for known pattern in the middle of a line
The problem with your regex (which may or may not be a real problem) is that the \w* limit what is included - a ( or | etc will cause an aberrant failure. It would be much more robust to use [^,]* as this includes everything except the comma separator....
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Need method to create Regular expression for known pattern in the middle of a line
by Ya (Initiate) on Feb 10, 2003 at 08:39 UTC | |
by tachyon (Chancellor) on Feb 10, 2003 at 17:51 UTC |