Trying to use RegEx negative lookahead
I am trying to match a string that might be either:
Regex match a character a maximum of one time in entire string
I’m looking at URLs and am trying to verify that the ? and # characters are not repeated more than once across the entire string. Browsers will still render the URL, but it’s poorly interpreted by back end code that’s looking at it, right? How can I accomplish limiting to a single instance of a specific character (two of them) in the entire string?
Capture around specific string
Having the below text: