in reply to Something is wrong with this pattern
What does $operator contain?
As a general comment: .+? at the start or end of a regex will never match anything - don't do that. It's also good practise to use a character set in place of . when using * to avoid capturing more than you intend.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Something is wrong with this pattern
by JavaFan (Canon) on Dec 24, 2010 at 10:34 UTC | |
by GrandFather (Saint) on Dec 24, 2010 at 21:42 UTC |