wxSTC and FindText

Hi,
When using FindText with the STC_FIND_REGEXP option, how can i determine the end position of the found text? If is this possible
thanks

Alessandro Crugnola - sephiroth

···

---------------------------------------------
Macromedia Flash Team Volunteer
http://www.macromedia.com/go/team
Flash && PHP developer
alessandro@sephiroth.it

*relax with SEPY http://www.sf.net/projects/sepy
---------------------------------------------

Alessandro Crugnola *sephiroth* wrote:

Hi,
When using FindText with the STC_FIND_REGEXP option, how can i determine the end position of the found text? If is this possible

Doesn't look like it, but if I read the header file right then SearchInTarget will give you what you want. Use SetTargetStart and SetTargetEnd to set the search range, SetSearchFlags to set the flags, and then SearchInTarget(text) to do the search. On success it will return the length of the found string, and will also reset the target to the found range.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!