Code Comments
Programming Forum and web based access to our favorite programming groups.
Is having regexs in RS supposed to be supported, or is is just a mawk/gawk
extension?
If its the latter, then it's a shame since it's one of the most useful
things ever.
-Ed
--
(You can't go wrong with psycho-rats.) (er258)(@)(eng.cam)(.ac.uk)
/d{def}def/f{/Times findfont s scalefont setfont}d/s{10}d/r{roll}d f 5/m
{moveto}d -1 r 230 350 m 0 1 179{1 index show 88 rotate 4 mul 0 rmoveto}
for /s 15 d f pop 240 420 m 0 1 3 { 4 2 1 r sub -1 r show } for showpage
Post Follow-up to this messageE. Rosten wrote: > Is having regexs in RS supposed to be supported, or is is just a mawk/gawk > extension? > > If its the latter, then it's a shame since it's one of the most useful > things ever. > > -Ed > It's a gawk extension, see: > The use of RS as a regular expression and the RT variable are gawk extensions; the y are not available in compatibility mode (see Options). In compatibility mode, only the first character of the value of RS is used to determine the end of the record.[ /color] from http://www.gnu.org/software/gawk/ma...-separators-366 Ed.
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.