Blogs

The One With

Rich Text Edit and Regular Expressions

     

Today someone showed this cool little feature in the Find/Replace dialog of the Rich Edit Control

 WinForms Rich Text Edit - Regular Expressions

You can search for any string or you can build a complex regular expression to match a specific pattern. This Find/Replace feature is also available via Document API

DocumentRange[] FindAll(Regex regex);
DocumentRange[] FindAll(Regex regex, DocumentRange range);
int ReplaceAll(Regex regex, string replaceWith);
int ReplaceAll(Regex regex, string replaceWith, DocumentRange range);

Pretty cool ah?

Azret

Published Aug 23 2010, 01:20 PM by Azret Botash (DevExpress)
Technorati tags: RichEdit, WinForms, RegEx, XtrarRichEdit
Bookmark and Share

Comments

 

Andrey Makhorin said:

really cool!

your editor becomes a power text processor. some our customers use it instead ms word...

August 24, 2010 2:10 AM
 

Azret Botash (DevExpress) said:

Andrey, thank you for nice comments. You are right, we have surpassed the features of the basic rtf editor long long time ago. It was in fact the intent :)  

August 24, 2010 12:51 PM
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.