Re: Quickie - Regexp for a string not at the beginning of the line

2012-10-26 Thread Ed Morton
On 10/25/2012 11:45 PM, Rivka Miller wrote: Thanks everyone, esp this gentleman. The solution that worked best for me is just to use a DOT before the string as the one at the beginning of the line did not have any char before it. That's fine but do you understand that that is not an RE that ma

Re: Quickie - Regexp for a string not at the beginning of the line

2012-10-25 Thread Ed Morton
On 10/25/2012 8:08 PM, Rivka Miller wrote: On Oct 25, 2:27 pm, Danny wrote: Why you just don't give us the string/input, say a line or two, and what you want off of it, so we can tell better what to suggest no one has really helped yet. Because there is no solution - there IS no _RE_ that

Re: sed/awk/perl: How to replace all spaces each with an underscore that occur before a specific string ?

2009-08-22 Thread Ed Morton
On Aug 22, 1:11 pm, bolega wrote: > sed/awk/perl: > > How to replace all spaces each with an underscore that occur before a > specific string ? > > I really prefer a sed one liner. Why? > Example > Input :  This is my book. It is too  thick to read. The author gets > little royalty but the publi

Re: Comparing 2 similar strings?

2005-05-18 Thread Ed Morton
John Machin wrote: > On Wed, 18 May 2005 20:03:53 -0500, Ed Morton <[EMAIL PROTECTED]> > wrote: >>I assume you were actually being facetious >>and trying to make the point >>that names that don't look the same on paper can have the same soundex >>enc

Re: Comparing 2 similar strings?

2005-05-18 Thread Ed Morton
John Machin wrote: > On Wed, 18 May 2005 15:06:53 -0500, Ed Morton <[EMAIL PROTECTED]> > wrote: > > >> >>William Park wrote: >> >> >>>How do you compare 2 strings, and determine how much they are "close" to >>>each other?

Re: Comparing 2 similar strings?

2005-05-18 Thread Ed Morton
William Park wrote: > How do you compare 2 strings, and determine how much they are "close" to > each other? Eg. > aqwerty > qwertyb > are similar to each other, except for first/last char. But, how do I > quantify that? > > I guess you can say for the above 2 strings that > - at