Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python regex get word after string

regexp = re.compile("name(.*)$")
print regexp.search(s).group(1)
# prints " is ryan, and i am new to python and would like to learn more"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #regex #word #string
ADD COMMENT
Topic
Name
6+7 =