borris111698
asked on
removing "/"
I have the referance numbers that look like
PNM/ENG/FLD/001
PNM/MTK/001
PNM/ENG/FLD/TRN/001/001
these are from $FORM{'refno'} from a text feild that is user defined. I want to remove the "/" from it so that it look like PNMENGFLD001... etc.
can anyone help
cheers
PNM/ENG/FLD/001
PNM/MTK/001
PNM/ENG/FLD/TRN/001/001
these are from $FORM{'refno'} from a text feild that is user defined. I want to remove the "/" from it so that it look like PNMENGFLD001... etc.
can anyone help
cheers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
$FORM{refno} =~ tr'/''d;
$FORM{refno}=~ s/\///g;
ASKER