showing results for - "javascript regex match any character including newline"
Marylou
13 Jun 2019
1//([\s\S]*?) matches any character including newline
2var result = str.match(/<script>([\s\S]*?)<\/script>/g)
queries leading to this page
js regex find all chars including new linematch char and new line regex jsjavascript regex match new linesjavascript regex new line matchingregex match string with newline javascripthow to use new line in regex of javascriptregex javascript newlineregex match 5cn jsregex accept new line jsregex for javascript finding 5cnregex for newline javascriptjs regex any character including newlineregex any single character including newline jsregex to search for breaks javascriptregex js new linejs regex match new lineregex javascript newline no matchregex match any character including newline javascriptjavascript regex match new linejavascript match any character including newlinejavascript regex match newlinejavascript regex match everything including newlinejs regex any chars including new linefind newline regex javascriptregexp match new line javascriptmatch new line regex javascriptregex match new line javascriptjavascript regex everything after including newlineregex match new line nodejsregex js capture everything including newlineregex for new line javascriptregex pattern new line jsjavascript regex any character including newlineregex all character including newline lines javascripthow to capture the next lines if the string match regex javascriptjs regex capture newlinecharacter for new line javascript regexjavascript regex matches any character including newlineregex any character including newlinejavascript regex match any character including newline