DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+2 =
Submit