Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

removing "/"

Posted on 1999-06-22
4
Medium Priority
?
212 Views
Last Modified: 2010-03-04
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
0
Comment
Question by:borris111698
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
mrchrist earned 200 total points
ID: 1213441
$FORM{'refno'} =~ tr/\///d;
0
 

Author Comment

by:borris111698
ID: 1213442
Cheers mrchrihst... I am not very good at this perl stuff yet???
0
 
LVL 84

Expert Comment

by:ozo
ID: 1213443
$FORM{refno} =~ tr'/''d;
0
 

Expert Comment

by:tkdale
ID: 1213444
$FORM{refno}=~ s/\///g;
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question