![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Regular Expressions HELP - PERL | maxmave | Shell Programming and Scripting | 3 | 06-05-2008 03:45 AM |
| Regular Expressions HELP - PERL | maxmave | UNIX for Dummies Questions & Answers | 1 | 06-04-2008 12:15 PM |
| regular expressions | jack1981 | Shell Programming and Scripting | 4 | 07-12-2006 03:10 PM |
| Regular Expressions | sandeep_hi | Shell Programming and Scripting | 6 | 06-12-2006 02:12 AM |
| Regular expressions in sed | mfreemantle | UNIX for Dummies Questions & Answers | 3 | 02-11-2002 09:34 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Perl regular expressions...
I am writing script that will act like the 'comm' utility. My
problem is when trying to read whether the user has entered -123 or -1 or -1...etc. I currently have: Code:
if(m/[\-][0-3][0-3]?[0-3]?[^a-z]/g){
print "Good.\n";
}
to output an error message if the user enters something like: -123333 or -123abc Something is wrong with the [^a-z] part. Could someone help me clean this up? Thanks. |
![]() |
| Bookmarks |
| Tags |
| regex, regular expressions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|