Philippe Lhoste wrote:

2) If multi-lines RE searches are possibles, this should be optional, or one should add the possibility of non-greedy searches (.*?) or something: somehow equivalent to [^)]* or [^\n\r)]*) which may be non trivial...

In Textpad I can search reg. exp string like the one you mentioned: "void .*)". And it actually works like you intended. But, I can also commit multiline searches.

- For example this search string "ContractionState.*"
Selects the string on the same line, instead selecting the whole file.
int _ContractionState::DisplayFromDoc(int lineDoc) const {_

- And string search string "bool*bool" won't return me the area between two bool-functions. (No matches found)

- But for example search string "}\n\nbool" will mark 3 lines selected, as intended:
}

bool

- But on the other hand this "}..bool" won't find any results, as dots are not converted into linechanges.

IMHO, this is how Scintilla should work also.

So, what if, the * and the rest will stop searching when the end of line is found, while \n allows search to continue further? In other words * is n amount of any characters, except line changes and . is any character except line change. Could this be implemented?
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to