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
Комментарии
Отправить комментарий