Python Forum
[Learning:bs4, re.search] - RegEx string cutoff
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Learning:bs4, re.search] - RegEx string cutoff
#6
I think the link I post explains what's wrong with using regex. No use to repeat the same discussion here
As @snippsat explained you can use regex when parser stop works.For specific cases mix of bs4 and regex to narrow down the exact piece of info from a string MAY work.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: [Learning:bs4, re.search] - RegEx string cutoff - by buran - Nov-23-2019, 09:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  string parsing with re.search() delahug 9 3,684 Jun-04-2020, 07:02 PM
Last Post: delahug
  Regex search for string DBS 3 4,576 Feb-06-2017, 11:39 PM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020