in reply to regex not working

Two things spring to mind: fix your current code - patterns are applied using =~, not = so that would be:
$value =~ s/kus//;
Or look for a string of digits in the variable:
($value) = $value =~ /(\d+)/;

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re: regx
by jumk (Initiate) on Jan 23, 2003 at 23:29 UTC
    thank u