Link to home
Create AccountLog in
Avatar of greddin
greddinFlag for United States of America

asked on

Help with Match

I'm trying to match a string but I can't get it to match. I must be missing something.


String to match:

/ctb/groups/dotmil/documents/kjpage/~export/CTB_205589~1~KXPLAINSCRIPTTEMPLATE~SNIPPETLAYOUT/309554_2.gif

My Regular Expression:

^/.*/groups/(\\w*)/documents/(.*)/\\%7Eexport/(\\w*)\\%7E(\\d*)\\%7E(\\w*)\\%7E(\\w*)/(\\d*)_(\\d*)\\.(\\w*)$

Open in new window

Avatar of kaufmed
kaufmed
Flag of United States of America image

Have you tried using a literal ~ instead of the unicode value?
ASKER CERTIFIED SOLUTION
Avatar of mark_harris231
mark_harris231
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of greddin

ASKER

Sorry for the delay in responding Mark. Thanks for the answer. Not sure why the \w and \d were escaped. This is code that I've inherited.