Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: pcre module help



> 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