But in the original context, we're only trying to match one record anyway, so if the match fails then $1 will contain '', and if you use .*? and the match succeeds then $1 will contain '', so I'm not sure it makes any difference. ;)
andy.
In reply to Re: Re: Re: pattern matching
by andye
in thread pattern matching
by silent11
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |