Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RegEx field
#1
Hi Guys,

I have a field i need to regex, it's the contents of this <span style="vertical-align:super;">(*?)</span>:

<span style="vertical-align:super;">
5 &nbsp; + &nbsp; 10 &nbsp; = &nbsp;</span>
I'm not too good with regex at all, is regex the best way to do these single lines or is beautiful soup a better way would you say?

cheers guys

Graham
Reply
#2
Really, I'd just use Beautiful Soup.
Reply
#3
That's what i thought, regex has always been a thorn in my side lol

cheers

Graham
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Bug ? when dataclass field name == field type Cyril 0 1,546 Oct-22-2020, 03:26 AM
Last Post: Cyril

Forum Jump:

User Panel Messages

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