Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Removing a specific character from a string

Posted on 2009-05-18
1
Medium Priority
?
634 Views
Last Modified: 2012-05-07
I was just wondering if there is a line of code which can remove a certain character from a $string.

i.e remove all of "_" in the string $sequence
0
Comment
Question by:StephenMcGowan
1 Comment
 
LVL 39

Accepted Solution

by:
Adam314 earned 500 total points
ID: 24413267

$sequence =~ s/_//g;

Open in new window

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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

916 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