Thread: Regex examples
View Single Post
Old 05-28-2014, 08:44 AM   #363
brunello
Junior Member
brunello began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2014
Device: galaxy tab3 7''
Quote:
Originally Posted by mzmm View Post
looks good. you could probably even condense it to

Code:
(?<=\s)([^\s]+)</p>\s*<p[^>]*>
if you're joining paragraphs, and then replace with
Code:
\1 <--- single space
(...)
this will also catch things like <p class='calibre'>, <p class="calibre calibre12">, etc
Wow! is amazing! it works great!
And it's not as horrible as what I wrote ^_^

Can you recommend any sites that explain regular expressions? there is so much material on the internet, but I want something that fully explain regex.
Thank you again!
brunello is offline   Reply With Quote