You need to sign in to do that
Don't have an account?
REGEX for URL Matching
Wondering if I can get a little help with this. My company has a very static form of a URL pattern, as follows:
https://www.mycompany.com/p/[ID]
Where [ID] is the Id of a record on our site. I'm struggling to write a REGEX to verify that a URL that matches my company's format appears in an email body. I have the email handler all set up, I just need to analyze whether a URL that appears in the body matches that format or not. I understand how to use the Pattern and Matcher classes, so all I need is the REGEX for the compiler. Any help at all would be appreciated!
https://www.mycompany.com/p/[ID]
Where [ID] is the Id of a record on our site. I'm struggling to write a REGEX to verify that a URL that matches my company's format appears in an email body. I have the email handler all set up, I just need to analyze whether a URL that appears in the body matches that format or not. I understand how to use the Pattern and Matcher classes, so all I need is the REGEX for the compiler. Any help at all would be appreciated!