Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python includes string

from re import search

fullstring = "StackAbuse"
substring = "tack"

if search(substring, fullstring):
    print "Found!"
else:
    print "Not found!"
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #python #includes #string
ADD COMMENT
Topic
Name
5+1 =