greddin
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*)$
Have you tried using a literal ~ instead of the unicode value?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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.