in reply to replace multiplication symbol (×)
The star("*") is a special character to a regexp. It means match 0 or more times. To remove the special significance you need to escape it to turn it into text.
Another trick is to make it part of a character classfor (@input) {s/\×//g};
In this case the things inside the [] are each considered single characters (excpet for maybe a ^ or -) , where any one of them can match a character. In this case [*] is the character class consisting of only *for (@input) {s/[×]//g};
Sorry, i did "misread to OP's multiplication symbol ("×") as an asterisk ("*")"., guess im getting old
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: replace multiplication symbol (×)
by LanX (Saint) on Aug 20, 2017 at 09:50 UTC |