Allolex, your piece o' code doesn't really satisfy the needs of Anonymous Monk, he needed to capture the whole line if there is no X.
saouq's code is simply beautiful, maybe someday my code will look like that :)
In reply to Re: Re: Capturing everything after an optional character in a regex?
by opqdonut
in thread Capturing everything after an optional character in a regex?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |