Answer to Question #3386 in Python for mukunda

Question #3386
Find the search string in given source string

Source = “Rajiv Gandhi University of Knowledge Technologies”
Search = “Techno”
1
Expert's answer
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS