Search Results

Search: Posts Made By: suppandi7
2,217
Posted By suppandi7
thanks. changed it to ^[a-zA-Z][a-zA-Z0-9]+X+$...
thanks. changed it to
^[a-zA-Z][a-zA-Z0-9]+X+$ works like a charm.
2,217
Posted By suppandi7
actually i changed the code a little...the...
actually i changed the code a little...the snippet i am using is this and getting the same answer.


#!/usr/bin/perl

my $inputtext = <STDIN>;

if($inputtext =~ m/[a-zA-Z][a-zA-Z0-9]+X+/)
{
...
2,217
Posted By suppandi7
Perl regular expression and %
Could you help me with this please. This regular expression seems to match for the wrong input


#!/usr/bin/perl

my $inputtext = "W1a$%XXX";
if($inputtext =~ m/[a-zA-Z][a-zA-Z0-9]+X+/) ...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy