javascript - Regular Expression to match pairs of forward slashes, but not escaped or between subsequent http:// -
I am trying to create a regular expression that is a coupled forward slash (like Then, in the following example, only the word "jumping" will be matched, and nothing will be matched: Work in JavaScript (i.e. no back-post) / something / ), but leave saved pairs (like
\ / something \ / ) and the subsequent URLs (like
http://something.com and stuff like http://somethingelse.org Leave anything) ).
jumped on quick brown fox / lazy dogs Looking for help / ways to find nearby methods of dogs / website / because he / she was sick from / above them. Unfortunately, both http://routesaroundlazydogs.com/ and https://maps.lazydogs.com/stuff/things/findmap.aspx were both down the day they were watching.
(^ | \ s +) / ([A-Z0- 9a-z] +) / \ S +
Comments
Post a Comment