pwu@uwmacc.UUCP (02/10/87)
Does anyone know of any public domain/shareware text editor that accepts regular expression for string search/replace? peter /* ** ARPA: pwu@unix.macc.wisc.edu BITNET: WU at WISVMACC ** UUCP: {seismo|harvard|topaz|caip|ll-xn| <-+ ** allegra|akgua|ucbvax|bellcore|ihnp4}!uwvax!uwmacc!pwu | ** | ** Uuhosts on this line may have faster delivery time. --------+ */
bobmon@iuvax.UUCP (02/11/87)
pwu@uwmacc.UUCP (Peter Wu) writes: >Does anyone know of any public domain/shareware text editor >that accepts regular expression for string search/replace? Lawrence's microEmacs v3.8 has some regular-expression capability. I don't know how to search for a pattern _and_then_replace_part_of_it_ (without trashing the entire pattern), but this may reflect my lack of skills with regular expressions. (I can't manage this in vi, either.) At any rate, it *will* do the search part adequately for my needs. Pointers: maybe in SIMTEL20 archives by now, or from Dan Lawrence's BBS at 1-317-742-5533; maybe elsewhere. Plug: I like this editor a lot.
cramer@kontron.UUCP (02/11/87)
> Does anyone know of any public domain/shareware text editor > that accepts regular expression for string search/replace? > > peter It's not public domain, but Epsilon V3.1 has regular expression string search now. (It's also considerably better than V3.0 in saving the current state). Go ahead! It's only $195 -- and well worth it. I have no connection with Epsilon or Lugaru Software, except as a radically satisfied customer. Clayton E. Cramer
twb@hoqax.UUCP (02/12/87)
In article <1041@uwmacc.UUCP>, pwu@uwmacc.UUCP (Peter Wu) writes: > Does anyone know of any public domain/shareware text editor > that accepts regular expression for string search/replace? > > peter The se software recently posted to mod.sources should do the trick. Tom.
boykin@custom.UUCP (02/12/87)
> Lawrence's microEmacs v3.8 has some regular-expression capability. I don't > know how to search for a pattern _and_then_replace_part_of_it_ (without > trashing the entire pattern), but this may reflect my lack of skills with > regular expressions. (I can't manage this in vi, either.) This is off of the original topic, but probably worth answering anyway... To replace part of a regular expression from within VI you must use parethesized regular expressions. For example. If you want to search for "foo bar", but only want to replace "bar" with "BAR", you can do the following: :sub/\(foo \)\(bar\)/\1BAR/ You can also do: :sub/\(foo \)\(bar\)/\1\U\2/ Note that \1 and \2 in the substitution portion provides the text which matched the the Nth subexpression. \U turns on conversion to upper-case. Unfortunately, there aren't many VI manuals which talk about all you can do with regular expressions (of course PC/VI's does! :-) ) Joe Boykin Custom Software Systems {necntc, frog}!custom!boykin