Le 31/07/2016 à 15:19, Vesta a écrit :
> Can anyone show how should look regular expression for this particular case?

This will work:

(<p)(>[^[:lower:]]*[[:upper:]][^[:lower:]]*</p>)

It matches any *but* lowercase, then one upper character, then anything
*but* lower characters.  Using "not lowercase" is useful to allow
punctuation and digits.

if you're interested in supporting uppercase <p> tags, you'll need to
make quantifiers ungreedy too:

(<[pP])(>[^[:lower:]]*?[[:upper:]][^[:lower:]]*?</[pP]>)

Cheers,
Colomban
_______________________________________________
Users mailing list
[email protected]
https://lists.geany.org/cgi-bin/mailman/listinfo/users

Reply via email to