What is wrong with this really really simple RegEx expression?

Posted by Pure.Krome on Stack Overflow See other posts from Stack Overflow or by Pure.Krome
Published on 2010-04-14T02:22:39Z Indexed on 2010/04/14 2:33 UTC
Read the original article Hit count: 343

Filed under:
|

Hi folks,

this one is really easy.

I'm trying to create a Regular Expression that will result in a Successful Match when against the following text

/default.aspx?

So i tried the following...

^/default.aspx$

and it's failing to match it.

Can someone help, please?

(i'm guessing i'm screwing up becuase of the \ and the ? in the input expression).

© Stack Overflow or respective owner

Related posts about regex

Related posts about regular-expression