Sign in to follow this  
Followers 0
Suppir

<GuiRichEdit.au3> - can I do regex replace in edit form?

6 posts in this topic

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



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

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

Share this post


Link to post
Share on other sites

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

#6 ·  Posted (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 by Suppir

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0