in reply to some regex help
Second, the /%(.*)\s*=\s*(.*)/ regexp is not exactly the same as the other one: the .* is greedy, therefore it will consume all the blanks before the equals sign. Your $1 will have trailing blanks if there are any trailing blanks to be had.(And what is the % doing there?)
Third, you do know that the $options as you posted it here will not match MN, don't you>? This is because it doesn't contain the letter M or N, and because it only accepts one letter, you need a + or a count like {n,m} to match it correctly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: some regex help
by emilford (Friar) on Apr 05, 2004 at 21:57 UTC |