Regular expression matched by two occurrences (one occurrence inside the other) [message #820540] |
Wed, 14 March 2012 09:01 |
Rosa Mising name Messages: 16 Registered: December 2009 |
Junior Member |
|
|
Hello, I would like to know if it is possible to define a regular expression that results on 2 different
result matches when searching via Eclipse File Search (one match is inside the other one). Let me explain better:
- I have a file that contains: hoholala
- I want to find any occurrence that is compliant with this regular expression: ho.*la (begins with "ho" and ends with "la").
- So, in my case 2 different occurrences are compliant:
"hola" (inside hoholala) and "hoholala"
- However, when searching this regular expression via Eclipse File Search, only 1 occurrence is found (hoholala).
In summary: an ocurrence located inside other occurrence is ignored.
it is possible to get the File Search to find 2 occurrences instead of just one by specifying another kind of regular expression ?. How this regular expression should be ?
Thanks a lot for your help.
|
|
|
Powered by
FUDForum. Page generated in 0.01833 seconds