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 / something / ), but leave saved pairs (like \ / something \ / ) and the subsequent URLs (like http://something.com and stuff like http://somethingelse.org Leave anything) ).

Then, in the following example, only the word "jumping" will be matched, and nothing will be matched:

 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.  

Work in JavaScript (i.e. no back-post)

(^ | \ s +) / ([A-Z0- 9a-z] +) / \ S +

regular expression view



Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -