Skip to content
Advertisement

Tag: regex-lookarounds

Is it possible to use only lookaround to match characters that are not repeated immediately before and after?

For example, to match the first slash after the domain name in the URL. Intent: Only match ‘/’ in ‘.com/…’ but not any ‘/’ in ‘https://’. The above [A] returns the correct match, but [B] is the kind of expression I want (although it did not match any characters), that is, to use the / character only 1 time in

Javascript Regex multiple search in two words

I want to transfer the results between Regex and two words to an array, but unfortunately I couldn’t this. Can you help me? In this text I will search this content, Based on this I write a regex like this However, this way, it takes the whole, not piece by piece. Thank you in advance for your help. Answer In

Advertisement