How to catch the text between two boundaries?
-
Hello, I am kind of new with regular expressions. As far as I search over the internet I couldn't find a resonable solution. Suppose I have the following in a string: Word0 word1 word2 word3 word4 word5 word6 word7 word8 word9 How can I capture the following? word4 word5 word6 word7 I would like to catch the text between TWO boundries word4 and word7. I`ve tried a lot of things none of them works. Thank you very much for your help and have a great day. Khoramdin
-
Hello, I am kind of new with regular expressions. As far as I search over the internet I couldn't find a resonable solution. Suppose I have the following in a string: Word0 word1 word2 word3 word4 word5 word6 word7 word8 word9 How can I capture the following? word4 word5 word6 word7 I would like to catch the text between TWO boundries word4 and word7. I`ve tried a lot of things none of them works. Thank you very much for your help and have a great day. Khoramdin
Hi! Something similar to
.*(word4.*word7).*
should work.
Regards, mav -- Black holes are the places where God divided by 0...