View Single Post
Old 08-15-2024, 02:54 AM   #3
lindlind
Junior Member
lindlind began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2024
Device: none
Thank you, I couldn't make that work either, but tried this, which works!

Code:
p = regex.compile('<span([^>]*"pagebreak"> ?)</span>')
return p.sub(r'<xxspan\1</xxspan>', match.group())
lindlind is offline   Reply With Quote