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.";
In reply to Re: Re: help with a regexp
by sauoq
in thread help with a regexp
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |