Hi,

Jerry Preston <[EMAIL PROTECTED]> asked:
> I am trying to change some text from:
> 
>      if ( (fabs(log(im[ii]/im[ii-1])/vstep) >
> fabs(3*log(im[ii-1]/im[ii-5])/(4*vstep)) )  && ((im[ii] > ifr[x]) ||
> (im[ii-1] > ifr[x]))  ) {
> to
>      if ( (fabs(log(im[ii]/im[ii-1])/vstep) > fabs(3 *
> log(im[ii-1]/im[ii-5])/(4 * vstep)) )  && ((im[ii] > ifr[x]) 
> || (im[ii-1] >
> ifr[x]))  ) {
>                                                                ^^^
> ^^^ 
> with the following:
> 
>   s/(?=[A-z|0-9]+)\*(?=[A-z]+)/' * '/g;
> 
> What am I doing wrong?

Hm, wouldn't this do the job?

s/\s*(\*{1,2})\s*/ $1 /g;

HTH,
Thomas

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

Reply via email to