?
Solved

Simple string manipulation...

Posted on 2005-04-06
2
Medium Priority
?
161 Views
Last Modified: 2013-12-25
I'm trying to figure out how to check a string in perl/cgi to make sure it has at least 1 number and 1 capital letter for a login page i'm making. Any help would be appreciated. Thanks/
0
Comment
Question by:sousuffer
2 Comments
 
LVL 18

Accepted Solution

by:
kandura earned 400 total points
ID: 13720424
print "YES!" if $string =~ /[A-Z]/ and $string =~ /[0-9]/;
0
 

Author Comment

by:sousuffer
ID: 13721544
Thanks for the help. Much appreciated.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

621 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