How come this RegEx isn't working quite right?

Posted by Charlie Brown on Stack Overflow See other posts from Stack Overflow or by Charlie Brown
Published on 2010-05-06T00:33:50Z Indexed on 2010/05/06 0:38 UTC
Read the original article Hit count: 309

Filed under:
|

I have this RegEx here:

/^function(\d)$/

It matches function(5) but not function(55). How come?

© Stack Overflow or respective owner

Related posts about regex

Related posts about error