I have some code to adjust data entered into a web page template to use it in a javascript function. This, amongst other things, will remove start and end spaces, replace the inter-word spaces with hyphens, etc etc.
However I am struggling to remove pound (£) signs.
Is there something different that I need to do for currency symbols?
Any help would be appreciated!
Thanks
Tony
------------------------------------------------------------
However I am struggling to remove pound (£) signs.
Is there something different that I need to do for currency symbols?
Any help would be appreciated!
Thanks
Tony
------------------------------------------------------------
Code:
Here is the code for the other RegExs: $idref =~ s/\'//g; # remove ' $idref =~ s/\&\; //g; # remove &<space> $idref =~ s/\& //g; # remove &<space> $idref =~ s/\,//g; # remove , $idref =~ s/\"//g; # remove " $idref =~ s/\-//g; # remove - $idref =~ s/\?//g; # remove ? $idref =~ s/ /_/g; # replace spaces with _
Comment