Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Regular expression matched by two occurrences (one occurrence inside the other)
Regular expression matched by two occurrences (one occurrence inside the other) [message #820540] Wed, 14 March 2012 05:01
Eclipse UserFriend
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.
Previous Topic:Looking for hook to run in main UI thread after init is complete
Next Topic:understanding access rules and forbidden, discouraged reference
Goto Forum:
  


Current Time: Tue May 13 22:38:24 EDT 2025

Powered by FUDForum. Page generated in 0.02689 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top