Hi Kanish, Try to use Negative Look ahead (?!).
if ($a=~m#$text=~s(.)\s*(?<!\1)#) should be if ($a=~m#$text=~s(.)\s*(?!\1)#)
Regards,
Velusamy R.
In reply to Re: Regexp help!!
by Samy_rio
in thread Regexp help!!
by kanish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |