Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: pcre module help
- X-seq: zsh-users 7568
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: pcre module help
- Date: Sun, 20 Jun 2004 10:48:44 -0400
- In-reply-to: <D289C58E-C2AF-11D8-8B47-000A95D2C79E@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <D289C58E-C2AF-11D8-8B47-000A95D2C79E@xxxxxxxxxxxxxxxx>
> if [[ $variable == pcre ]] ; then
> blah
> fi
At this point, you have two options:
1)
pcre_compile pcre
if pcre_match $variable; then
blah
fi
2)
if [[ $variable -pcre-match pcre ]]; then
blah
fi
If these don't fit your needs, let us know.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author