Text-
.1. This is just awesome.2. Google just ruined Apple.3. Apple ruined itself!
pattern = (dot)(number)(dot)(singlespace)
Imagine you have 30 to 40 sentences with paragraph numbers in the above pattern. A <p>
tag should be replaced behind THE PARAGRAPH NUMBER! USING re.sub()
I want the text to be:
</p> <p style="text-align: justify;">1. This is just awesome.</p> <p style="text-align: justify;">2. Google just ruined Apple.</p> <p style="text-align: justify;">3. Apple ruined itself!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…