Path: utzoo!attcan!uunet!bfmny0!tneff From: tneff@bfmny0.UU.NET (Tom Neff) Newsgroups: comp.lang.perl Subject: User Definable Character Classes Message-ID: <15253@bfmny0.UU.NET> Date: 14 Mar 90 17:53:28 GMT Reply-To: tneff@bfmny0.UU.NET (Tom Neff) Lines: 15 A feature I'd like to see added: a few user definable character classes. Call them \X, \Y, \Z. These could be used in regexp's without the additional overhead or confusion of using $vars. Example: I define \X to be [\w-$_] -- with whatever syntax. Now I can have complex substitutions s/<([.\X]+!)+(\X+\.[.\X]+!)/<$2/; with good performance. It seems straightforward to modify regcomp.c to use \X thru \Z if defined. -- Perestroika: could \O\ Tom Neff it happen here? \O\ uunet.uu.net!bfmny0!tneff