Kevin,

I am converting c to basic.  Bad stuff!

Thanks,

Jerry

-----Original Message-----
From: Kevin Pfeiffer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 01, 2003 4:23 AM
To: [EMAIL PROTECTED]
Subject: Re: is there away to regex

In article <[EMAIL PROTECTED]>, Jerry Preston
wrote:

> Hi!
> 
> Is it possible to combine the following into one:
> 
>           s/^\s+;//;
>           s/\/\*/!/;
>           s/\*\///;

s/^\s+;//; s/\/\*/!/; s/\*\///;   # ;-)

Why would you want to? (Not that I know if you can) It's easier to see what
is being done when they are separate.


Even easier (I think) would be if you write:

        s|/\*|!|; # or
        s{/\*}{!};

-K
-- 
Kevin Pfeiffer
International University Bremen


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to