tony_britannia
01-19-2009, 06:48 AM
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
------------------------------------------------------------
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 _
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
------------------------------------------------------------
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 _