Find those html tags that contain only 3 words (with regex)
-
Hello. For example.
<p class="pintem">Since you loose</p><p class="pintem">Truly creative works remain exclusively in the care of the creative man</p>Is it possible to find only those html tags that contain only 3 words (with regex). In my case, only the first line?
I made a regex, but doesn’t work
FIND:
(<p class="pintem">)\w{1,3}(</p>) -
@neculai-i-fantanaru said in Find those html tags that contain only 3 words (with regex):
Is it possible to find only those html tags that contain only 3 words (with regex). In my case, only the first line?
Yes.
Find:
(?-is)<p class="pintem">\w+?\h\w+?\h\w+?</p> -
@alan-kilborn said in Find those html tags that contain only 3 words (with regex):
(?-is)<p class=“pintem”>\w+?\h\w+?\h\w+?</p>
thank you
-
@neculai-i-fantanaru
Try this:
<p class="pintem">(?:\W*\w+){3}\W*</p>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login