Eclipse regex search for (.*) doesn’t work repeatably?

On a file in MyEclipse search for (.*) in regexp mode. It will find the first match sometimes. Search again, it will state no match found. However, use (.+) and it will find each line.

That is weird behavior. Same thing happens in Eclipse Helios. Tried it in an editor, GVim. Works fine. Must be a Preferences setting, or a built in limit to avoid runaway regexps.

Tried (.*?), won’t even find one match.

Updates
10-23-2012: You have to use \R as the terminator. That is very nonstandard.

See also
The Incredible Suckiness of Text Editors

Similar Posts:

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.

2 thoughts on “Eclipse regex search for (.*) doesn’t work repeatably?”

Leave a Reply

Your email address will not be published. Required fields are marked *