Suppir Posted November 20, 2010 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.
Suppir Posted November 20, 2010 Author 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...
James Posted November 20, 2010 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
Suppir Posted November 20, 2010 Author 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.
James Posted November 20, 2010 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
Suppir Posted November 21, 2010 Author 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now