Problem with basic regex to match ending optional character

Posted by Raz on Stack Overflow See other posts from Stack Overflow or by Raz
Published on 2010-06-01T13:55:01Z Indexed on 2010/06/01 14:03 UTC
Read the original article Hit count: 193

Filed under:

Hi all i was hoping someone could help be with some basic regex i am really struggling with.

Bascially i need to match a url for redirection. I have been using

^~/abc(/)?

however i need to chnage the end part to just check the last optional charcater as this will also match ^/abcd

© Stack Overflow or respective owner

Related posts about regex