You haven't said what's variable and what's fixed so there are any number of possible solutions. If you want to remove the 99%, you can just say $string =~ s/99%//; or if you want to remove all things that look like percentages, you could say $string =~ s/\d+%//g;. But you may want something more complicated. I don't know.
In reply to Re: Regular expression question
by duff
in thread Regular expression question
by PERLarity
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |