
- 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?
    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.
    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.
- about - downloads - registration - forum - misc - home - © 1996-99 GWD Text Editor
|