Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expression
#10
(Jul-05-2023, 01:18 PM)DeaD_EyE Wrote: Regex is not a good tool to parse HTML. I can't find the source, but someone mathematically proofed, that HTML is not parsable by regex.

You could use BeautifulSoup to parse HTML.

Yes - I'd definitely agree - BeautifulSoup is much better for parsing HTML than RegEx - in theory and in practice attempting to use RegEx to parse HTML tends to get bogged down in a lot of problems.
Reply


Messages In This Thread
Regular Expression - by stahorse - Jul-05-2023, 06:28 AM
RE: Regular Expression - by Gribouillis - Jul-05-2023, 07:46 AM
RE: Regular Expression - by stahorse - Jul-05-2023, 09:21 AM
RE: Regular Expression - by Gribouillis - Jul-05-2023, 11:51 AM
RE: Regular Expression - by stahorse - Jul-05-2023, 12:10 PM
RE: Regular Expression - by DeaD_EyE - Jul-05-2023, 01:18 PM
RE: Regular Expression - by Will_Robertson - Jul-31-2023, 01:20 PM
RE: Regular Expression - by stahorse - Jul-05-2023, 02:46 PM
RE: Regular Expression - by stahorse - Jul-11-2023, 10:12 AM
RE: Regular Expression - by deanhystad - Jul-12-2023, 11:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  regular expression pramod 1 1,577 Jul-10-2020, 06:38 AM
Last Post: karkas
  regular expression pramod 6 3,065 Jul-04-2020, 04:58 AM
Last Post: pramod
  regular expression pramod 4 2,120 Jun-16-2020, 02:01 AM
Last Post: pramod
  regular expression pramod 2 1,662 May-05-2020, 02:36 AM
Last Post: pramod

Forum Jump:

User Panel Messages

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