RE: question of regular expression

2004-10-28 Thread Ed Chester
i wrote, obviously with my eyes closed: > s/-x/''/; which of course should be s/-x//; - sorry! ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: question of regular expression

2004-10-28 Thread Ed Chester
> Could anyone let me know by using regular expression, how can I get rid of "-x"? If that's all you really want, and you know that's the only place it can occur, then its no problem to use just s/-x/''/; (substitute '-x' by '') ed c ___ Perl-Win32-U