2
Answers

how to this regex in similar and faster way ?

Photo of Sangeetha S

Sangeetha S

May 27
155
1
re.search(r'data check\s*:\s*false\((\d+)\)', content).group(1)
if re.search(r'data check\s*:\s*false\((\d+)\)', content) 
else "NA"

 

how to this regex in similar and faster way ?  i have so many regex to check how to do it in efficient way ?

Answers (2)