in reply to Re^3: Regex not matching
in thread Regex not matching

the reason seems to there is an extra space after the number ,if I remove that extra space it seems to match,not sure why would "an extra space"after the number make a difference

Replies are listed 'Best First'.
Re^5: Regex not matching
by ikegami (Patriarch) on Jan 29, 2011 at 04:48 UTC
    It makes a difference because your pattern explicitly requires that the end of the line follows the number (/\d+$/).

      Ya,figured that out