Reply To: Find 4 first words of a sentence

#75389
Masood Ahmad
Participant

@Ron, I tried putting the punctuation marks inside the square brackets but it didn’t worked. Therefore, I tweaked the code to include all of them:

Find: (^\d)((\<[A-Za-z]+\>[.,?!;:'"]* ){4}).+

This article was last modified on May 15, 2015

Comments (0)

Loading comments...