I need help with regex in python.
I’ve got a large html file[around 400 lines] with the following pattern
text here(div,span,img tags)
<!-- 3GP||Link|| -->
text here(div,span,img tags)
So, now i am searching for a regex expression which can extract me this-:
Link
The given pattern is unique in the html file.
r''is a raw literal, it stops interpretation of standard string escapes\<!-- 3GP\|\|is a regexp escaped match for<!-- 3GP||([^|]+)will match everything upto a|and groups it for convenience\|\| --\>is a regexp escaped match for|| -->re.findallreturns all non-overlapping matches of re pattern within a string, if there’s a group expression in the re pattern, it returns that.