On Sun, 15 Feb 2009, Martin Neitzel wrote:
> >/([a-zA-Z][a-zA-Z0-9_]*)[ \t]*=:/\1/
>
> Is that aiming at "foo =: foo_locale_"?
No, it is just the syntax of the newer "Exuberant Ctags"
/([a-zA-Z][a-zA-Z0-9_]*)[ \t]*=:/\1/d,definition/
/regex1/regex2/comment/
1. regex1 : the pattern to be matched
2. regex2 : the pattern to be extracted from regex1, equivalent to
your intended use of sub() in awk
3. comment : the comment at the end of EX command used by vim to
provide extra information when using g^]
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩286 張祜 題金陵渡
金陵津渡小山樓 一宿行人自可愁 潮落夜江斜月裡 兩三星火是瓜州
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm