![]() |
|
|
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 |
| Perl regex help - matching parentheses | cvp | Shell Programming and Scripting | 7 | 02-27-2009 05:38 PM |
| perl: storing regex in array variables trouble | xist | Shell Programming and Scripting | 3 | 08-29-2008 09:07 AM |
| q with Perl Regex | JamesGoh | Shell Programming and Scripting | 8 | 07-24-2008 02:23 AM |
| Perl regex question | figaro | Shell Programming and Scripting | 10 | 07-18-2008 04:45 AM |
| how do i strip this line using perl regex. | ramky79 | Shell Programming and Scripting | 1 | 03-18-2008 12:10 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Perl REGEX
Hi,
Can anyone help me to find regular expression for the following in Perl? "The string can only contain lower case letters (a-z) and no more than one of any letter." For example: "table" is accepted, whether "dude" is not. I have coded like this: $str = "table"; if ($str =~ m/\b([a-z])[^\1]\b/) { ... } But it does not work . Any helps would be appreciated. Thanks. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|