0

re module cant be two times?

26th Mar 2020, 10:09 AM
Saurabh Sen
Saurabh Sen - avatar
10 Answers
+ 5
To make it clear, i have put your code (slightly reworked) in a new file, and put some comments as explanations. https://code.sololearn.com/ctN9DA6ZNC2T/?ref=app
26th Mar 2020, 3:58 PM
Lothar
Lothar - avatar
+ 5
Can you please make your question more precise? You can show us your code, results or whatever is needed to help you. And also give a tag what programming language you are talking about. Thank's.
26th Mar 2020, 10:27 AM
Lothar
Lothar - avatar
+ 2
Saurabh Sen shouldn't the last lines be these? if mtch: print(mtch.span())
26th Mar 2020, 11:55 AM
maf
maf - avatar
+ 2
Saurabh Sen I didnt understand the question :D
26th Mar 2020, 3:12 PM
maf
maf - avatar
+ 1
maf i understood what you want to say but 😂i am asking about set variable
26th Mar 2020, 3:11 PM
Saurabh Sen
Saurabh Sen - avatar
26th Mar 2020, 10:36 AM
Saurabh Sen
Saurabh Sen - avatar
0
Listen i am tring that → i want to use two re.search for two variables
26th Mar 2020, 3:14 PM
Saurabh Sen
Saurabh Sen - avatar
0
match = re.search(pattern, "eggspamsausage") mtch = re.search(set,"djsaurabh") You already did re.search with 2 variables, ask Lothar he can help.
26th Mar 2020, 3:18 PM
maf
maf - avatar
0
Lothar hello lothar please help
26th Mar 2020, 3:19 PM
Saurabh Sen
Saurabh Sen - avatar
0
Lothar i want to ask a question that how much time does java and javascript will take if i will give two hour a day to both the languages ?
26th Mar 2020, 4:22 PM
Saurabh Sen
Saurabh Sen - avatar