t: Tuesday, September 02, 2003
12:26 PMTo: Perl UsersSubject: Regex Help
Needed
I have a list of characters. I need to get
a list of all possble sequences of these characters for example.
I have a string that consists of '-mevqgn' I need
to pattern match any combinat
$Bill Luebkert wrote:
> Dax T. Games wrote:
>
>
>>I have a list of characters. I need to get a list of all possble
>>sequences of these characters for example.
>>
>>I have a string that consists of '-mevqgn' I need to pattern match any
>>combination of 'mevqgn' with a preceding - or --.
>>
>
At 01:26 PM 9/2/2003, Dax T. Games wrote:
I have a
list of characters. I need to get a list of all possble sequences
of these characters for example.
I have a string that consists of '-mevqgn' I
need to pattern match any combination of 'mevqgn' with a preceding - or
--.
Right now this is w
pha2) {print "Pattern found!\n";}
-Original Message-From: Dax T. Games
[mailto:[EMAIL PROTECTED]Sent: Tuesday, September 02, 2003
11:26 AMTo: Perl UsersSubject: Regex Help
Needed
I have a list of characters. I need to get
a list of all possble sequences of these cha
or ( @test )
{
print "$_ " . is_DTG_Option( $_ ) . "\n";
}
--
Mike Arms
-Original Message-
From: Dax T. Games [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 11:26 AM
To: Perl Users
Subject: Regex Help Needed
I have a list of characters. I nee
Users" <[EMAIL PROTECTED]>
Sent: Tuesday, September 02, 2003 12:26 PM
Subject: Regex Help Needed
I have a list of characters. I need to get a list of all possble
sequences of these characters for example.
I have a string that consists of '-mevqgn' I need to pattern match a
On Tue, 2 Sep 2003, Dax T. Games wrote:
> I have a list of characters. I need to get a list of all possble sequences of these
> characters for example.
>
> I have a string that consists of '-mevqgn' I need to pattern match any combination
> of 'mevqgn' with a preceding - or --.
>
> Right now th
} }
return 1;}
-Original Message-From: Dax T. Games
[mailto:[EMAIL PROTECTED]Sent: Tuesday, September 02, 2003 1:26
PMTo: Perl UsersSubject: Regex Help
Needed
I have a list of characters. I need to get
a list of all possble sequences of these characters for exampl
Have you tried playing around with character sets? Something like
$target = 'mevqgn';
$length_target = length $target;
if ( $LS_Val =~ /-{1,2}[$target]{$length_target}/ ) {
#do something
}
Whether the above would work for you would depend on whether the code
can ignore positive matches on $LS_
, $MyData; }else
{ printf "All necessary characters were
present.\n"; }
From your description they should only appear once, doesn't matter sequence. I believe it could be a starting place.
Wags ;)
-Original Message-From: Dax T. Games
[mailto:[EMAIL PROTECTED]S
Dax T. Games wrote:
> I have a list of characters. I need to get a list of all possble
> sequences of these characters for example.
>
> I have a string that consists of '-mevqgn' I need to pattern match any
> combination of 'mevqgn' with a preceding - or --.
>
> Right now this is what I am d
I have a list of characters. I need to get a
list of all possble sequences of these characters for example.
I have a string that consists of '-mevqgn' I need
to pattern match any combination of 'mevqgn' with a preceding - or
--.
Right now this is what I am doing but it is very
ugly a
12 matches
Mail list logo