Python Forum
find chars after chars in 'pre' tag
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
find chars after chars in 'pre' tag
#6
I think this gets me back to (one of) my original problems/questions...

1 - If I'm using bs to capture the contents of a pre tag... then that is a hierarchical bs object... or some such... right?
And as such I can't use regx to search it... right?

2 - Your earlier code in this thread seems to be a valid solution for dealing with \n issue when bs 'finds' pre tag contents... right?

3 - But since I invested a bunch of time in learning regx it would be nice to know that when bs does not provide an obvious (to me) way to drill down and get my target text... how do I convert the thing bs returns via using the find, find_all or select method to a string upon which a regx search will work?
Reply


Messages In This Thread
find chars after chars in 'pre' tag - by Fran_3 - Aug-17-2017, 11:18 PM
RE: find chars after chars in 'pre' tag - by Fran_3 - Aug-19-2017, 04:27 PM
RE: find chars after chars in 'pre' tag - by Fran_3 - Aug-19-2017, 08:30 PM
RE: find chars after chars in 'pre' tag - by Fran_3 - Aug-20-2017, 02:56 PM
RE: find chars after chars in 'pre' tag - by Fran_3 - Aug-22-2017, 11:44 PM

Forum Jump:

User Panel Messages

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