Suppir 0 Posted November 20, 2010 Hello! I'm using <GuiRichEdit.au3> library, but I can not find: is there any way to do search/replace with PCRE regexes in Edit data? Thanks. Share this post Link to post Share on other sites
Suppir 0 Posted November 20, 2010 If there is no regex support, is there any way to get collection of elements in Edit field.If I could to do regex' search and replaces through this collection... Share this post Link to post Share on other sites
James 377 Posted November 20, 2010 Hello!I'm using <GuiRichEdit.au3> library, but I can not find: is there any way to do search/replace with PCRE regexes in Edit data? Thanks.You have to build one yourself.Checking that the PCRE is valid is easy because of the return value of StringRegExpReplace,James Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Share this post Link to post Share on other sites
Suppir 0 Posted November 20, 2010 I found that regexes do not work. There is the only way to write data to RTF, and do replaces there, than render RTF in RichEdit again. Share this post Link to post Share on other sites
James 377 Posted November 20, 2010 I found that regexes do not work. There is the only way to write data to RTF, and do replaces there, than render RTF in RichEdit again.And what Regex were you using? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Share this post Link to post Share on other sites
Suppir 0 Posted November 21, 2010 (edited) So, we have some data (with tables, styles, etc) in richedit, then we do regex' replaces there. For example: Find:[\t ]+ Replace to: Find:([\( ])(№|N)[ °]*(\d) Replace to:$1N $3 How to do it? Edited November 21, 2010 by Suppir Share this post Link to post Share on other sites