Re: Modifying strings in a file.

From: Fabrice Guerini (fabrice@BLUEMARTINI.COM)
Date: Wed Aug 28 2002 - 17:54:42 EDT


On 01:47 PM 8/28/2002, Ron Schwingel uttered:
>Good. Getting closer. I will not always know how many words in a line. I
>just used word1 word2 word3 word4 as an example. What can I use if
>I don't know how many white spaces are in a line? Something that
>acts as a wildcard for everything before and after the string I am
>looking for on the line.
>
>Something to replace this I would think.
>
> \([^ ]* [^ ]* [^ ]* [^ ]*\)

OK. So what EXACTLY determines what kind of line must be changed? If you
don't have a clear syntax, you can't do it programmatically.

+===========================================================+
| Fabrice "Script It!" Guerini Blue Martini Software, Inc. |
| Senior Operations Engineer 2600 Campus Drive |
| Tel: (650) 356-7576 San Mateo, CA 94403-2522 |
| Fax: (650) 356-4001 www.bluemartini.com |
+===========================================================+



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:10 EDT