View Single Post
Old 01-31-2013, 07:53 PM   PM User | #5
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
thanks Andrew - the first one was very close. I changed it to
Code:
(?:|^)?[\w]([^.]*wibble[^.]*)($:|\.|\?|\!|$)
to start the capture at the beginning of the sentence ort the beginning of the string, instead of the end of the previous one, and to end on a full stop, exclamation, question mark or just the end of the string

seems right to me. Thank you both for your suggestions.
xelawho is offline   Reply With Quote