Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex

import re
reload (re)

r = re.compile("([0-9]+)([a-zA-Z]+)([0-9]+)")
m = r.match("123ab1234")
if m:
    print m.group(1)
    print m.group(2)
    print m.group(3)

else:
    print "no match"
Source by gis.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #regex
ADD COMMENT
Topic
Name
1+3 =