... the preceding element [.+?] happily matches to the end of the string.
No, it matches one character. Then (?:Other\s+(\d+))? matches the empty string, and then we reach the end of the pattern.
In reply to Re: Re: Regular Expn Problem
by TilRMan
in thread Regular Expn Problem
by venkatr_n
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |