Solved

Pattern Match

Posted on 1997-07-09
2
277 Views
Last Modified: 2006-11-17
Looking for a Pattern Match in perl4 toEXCLUDE certain characters such as @#$ etc..
something like:
if ($string =~ /[       ]/) {
print "These are not allowed";
exit;
}
continue with program if characters are not present

0
Comment
Question by:donb1
2 Comments
 
LVL 5

Accepted Solution

by:
icd earned 50 total points
ID: 1204788
exit if ($string =~ /[\@\$#]/);
0
 

Author Comment

by:donb1
ID: 1204789
Thanks
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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 …
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…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

805 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