Answer to Question #3386 in Python for mukunda
Find the search string in given source string
Source = “Rajiv Gandhi University of Knowledge Technologies”
Search = “Techno”
1
2011-08-02T14:17:54-0400
import re
source = "Rajiv Gandhi University of Knowledge Technologies"
search = "Techno"
print( search, "is at", re.search( search, source ).start(0), "position of the source string" )
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
Python
Comments
Leave a comment