Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript regex match any character including newline

//([sS]*?) matches any character including newline
var result = str.match(/<script>([sS]*?)</script>/g)
 
PREVIOUS NEXT
Tagged: #javascript #regex #match #character #including #newline
ADD COMMENT
Topic
Name
9+1 =