python
Question
re.search(‘^From:’, line)
what will the above line of code do?
solved
0
Interview Question
55 years
1 Answer
804 views
Member 0
Answer ( 1 )
explanation:
this code is related to relational expressions which will search for the word ‘from’ in the ‘line’ at the start position of a line.
the sign ‘^’ indicates line starts with .