The following regex works when I test it here: https://regex101.com/r/oxsNRW/2
(toString\(\)[\s\S]+\))(\s*\R\s*?})
However, when I put the same input and regular expression in Notepad ++ on Windows 10, it says that the regular expression is not valid. Why?
source
share