View Single Post
Old 10-10-2020, 10:30 AM   #1
michaelbr
Connoisseur
michaelbr began at the beginning.
 
michaelbr's Avatar
 
Posts: 81
Karma: 10
Join Date: Aug 2010
Location: Murcia/Spain
Device: Android 12
regex newbie search end of string char problem

I have a text file with several paragraphs, I'd like to search for paragraphs ending with *[a-zA-Z]</p>, here is an example:
paragraph 1: .....
Code:
.’</p>
paragraph 2: .....
Code:
.</p>
paragraph 3: ......
Code:
</p>
the .... can be either char or number, I'd like to find only paragraph 3, I tried this regex
Code:
([^.]|[^.’])<\/p>$
, but it's not working, can someone please tell me what's the best way to search for this string?
michaelbr is offline   Reply With Quote