in reply to Re: help with a regexp
in thread help with a regexp

As I mentioned in my reply to Helter, your solution fails on a single character string. Worse, it requires a string to have 3 characters at a minimum. (I also agree that lowercasing the middle portion is probably wrong.)

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: Re: help with a regexp
by husoft (Monk) on Sep 26, 2002 at 19:56 UTC
    I dont think that lowercasing the middle is wrong.
    $foo="XOXOXOXOXOXOXOXOXOXOXOXOXOXXO";
    you will need to lowercase the middle!...