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'

Connection string for MariaDB using ODBC

Celery like system based on django channels