Discussion
Topics
Last Day
Last Week
Tree View

Search
New Messages
Keyword Search

Help
Getting Started
Formatting
Troubleshooting
Program Credits

Utilities
Edit Profile
Administration
Contact

 
forum - discussion board
- about - downloads - registration - forum - misc - home - © 1996-99 GWD Text Editor

Search/Replace demimited strings?

GWD Text Editor Forum: Technical Support: Search/Replace demimited strings?
Top of pagePrevious messageNext messageBottom of pageLink to this message  By Todd Oberly on Friday, July 28, 2000 - 05:17 pm:

I was just trying to use the Regular Expression option to Search and Replace fields of characters (with a random length) that are delimited with colons, and had some problems. For example:

random text:more random text:some more random text
more text:even more text:still more text

I wanted to remove the middle fields (between the colons) and replace them with a string. I tried many kinds of expressions but could not get the GWD editor to highlight more than a few characters. There doesn't seem to be a way to specify "any number of any characters", like a * wildcard would in DOS. Is there something I am missing?

I know I could write a script to do this, but in that time I can edit the file by hand. :-(

Thanks for any suggestions.


Top of pagePrevious messageNext messageBottom of pageLink to this message  By Bill Brantley on Thursday, April 12, 2001 - 09:08 pm:

To match the all text between the first and last ':', (including the ':'s) use the following pattern
:.*:

But if you want to match only the contents between the first and second ':' (including the ':'s) use the following pattern
:[^:]*:

Remember to enable Regular Expressions in the Replace dialog box.


Add a Message


This is a public posting area. If you do not have an account, enter your full name into the "Username" box and leave the "Password" box empty. Your e-mail address is optional.
Username:  
Password:
E-mail:


- about - downloads - registration - forum - misc - home - © 1996-99 GWD Text Editor