Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript regex stop at first match

// Adding a ? on a quantifier (?, * or +) makes it non-greedy.
/location="(.*?)"/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #regex #stop #match
ADD COMMENT
Topic
Name
6+9 =