Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Perl: Remove all uppercase words from a string

Posted on 2006-03-27
Medium Priority
Last Modified: 2009-07-29
I need to remove all uppercase words from a string but only if they are all uppercase.

$string = "REMOVE ME bUt Not me";

$string =~ s/*remove pattern*//g;

print $string."\n"; # should now print "bUt Not me"

Thank you very much for the help.

Best regards,

Question by:dr34m3rs
1 Comment
LVL 85

Accepted Solution

ozo earned 1000 total points
ID: 16304579

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

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 …
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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

564 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