Thread: regex help
View Single Post
Old 01-21-2014, 07:42 AM   #1
najgori
Klak
najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'
 
najgori's Avatar
 
Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
regex help

1.
p(?!([^<]+)?>) "find character 'p' everywhere except within html tags"

2.
p(?!([^&]+)?;) "find character 'p' everywhere except within named entities"

i would like to merge these 2 searches to 1, so my new search would skip both tags and named entities.

i could replace all named entities with decimal, but this is indirect solution.
najgori is offline   Reply With Quote