On Tue, Jul 11, 2000 at 11:20:15AM +1000, Rick Welykochy wrote: > Doh! Try this: > > :1,$s/$ord/$ord->/g > > Note that vi like perl is a smarty pants. > A $ is only interpreted as a line end if > it is the last char in the pattern. Except that in Perl the $ord would normally be interpreted as the variable $ord, and thus the $ needs to be quoted (or some other quoting would be required). Scott. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
- [SLUG] Stupid Regex questions.. Anthony Rumble
- Re: [SLUG] Stupid Regex questions.. Alexander Else
- Re: [SLUG] Stupid Regex questions.. Herbert Xu
- Re: [SLUG] Stupid Regex questions.. Rick Welykochy
- Re: [SLUG] Stupid Regex questions.. Anthony Rumble
- Re: [SLUG] Stupid Regex questions.. Rick Welykochy
- [SLUG] Re: Stupid Regex questions.. Angus Lees
- Re: [SLUG] Re: Stupid Regex questions... Herbert Xu
- Re: [SLUG] Stupid Regex questions.. Scott Howard
- Re: [SLUG] Stupid Regex questions.. Herbert Xu
- Re: [SLUG] Stupid Regex questions... Scott Howard
- Re: [SLUG] Stupid Regex quest... Herbert Xu
- Re: [SLUG] Stupid Regex questions.. Jim Clark
- Re: [SLUG] Stupid Regex questions.. Scott Howard
