Aleksandrov's BLOG
There are my notes about JavaScript, Java, Grails, Scala.
Find all sub-string in string by REGEX
var text = "userid_83608eb3-3419-11e8-9fb0-e920d98c9181_create-avatar_name.jpg"
text.match(/userid_(\w{8}(-\w{4}){3}-\w{12}?)/g)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment