Regex Help
- From: jkipp5@xxxxxxxxxxx (Jim)
- Date: Tue, 18 Apr 2006 20:52:04 -0400
i am trying to match a '!' followed by any char but a '!' or no chars
(string is only a '!')
this is what I have and it is not working:
$str = "!!";
# this is not working. it is matching "!!"
print "$str\n" if $str =~ /\![^!]*/;
Thanks for any help
.
- Follow-Ups:
- Re: Regex Help
- From: Chad Perrin
- Re: Regex Help
- From: Tom Phoenix
- Re: Regex Help
- From: Peter Cornelius
- Re: Regex Help
- References:
- Interprocess communications for Windows Perl
- From: Karjala
- Interprocess communications for Windows Perl
- Prev by Date: Functions return value
- Next by Date: Re: Regex Help
- Previous by thread: Re: Interprocess communications for Windows Perl
- Next by thread: Re: Regex Help
- Index(es):