Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get words between two words

# credit to the Stack Overflow user in the source link
import re

text = 'gfgfdAAA1234ZZZuijjk'

m = re.search('AAA(.+?)ZZZ', text)
if m:
    found = m.group(1)

# found: 1234
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #words #words
ADD COMMENT
Topic
Name
8+7 =