Aug-19-2017, 08:30 PM
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?
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?