Regex match word unless line starts with a specific character

Regex match word unless line starts with a specific character

I need a regex expression that matches a word when the word is preceded by whitespace, unless the line starts with a specific character. Given strings: var stringOne Stack Overflow var stringTwo Question Overflow const regex new RegExp nrOverflow, gi console.logstringOne.replaceregex, match console.logstringTwo.replaceregex, match Expected Output: Stack Overflow Question match Actual Output: Stack match Question match

Комментарии

Популярные сообщения из этого блога

Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository … doesn't support architecture 'i386'

FillChar and StringOfChar under Delphi 10.2 for Win64 Release Target

Python Selenium - How to configure a client certificate file while initializing PhantomJS driver instance