help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] perl regex in bash


From: DJ Mills
Subject: Re: [Help-bash] perl regex in bash
Date: Mon, 18 Mar 2013 12:27:23 -0400

On Sat, Mar 16, 2013 at 11:17 AM, Peng Yu <address@hidden> wrote:
Hi,

It seems that bash only accept POSIX regex as stated in regex(3). Is
there a way to allow perl regex in bash. In particular, I want to use
(?:...) as defined in perl.

--
Regards,
Peng


Regex is not always the answer. In fact, it's often the worst way to solve a given problem. What are you actually trying to do that makes you think you need PCRE? If you really want them, use perl, but I can guarantee there's another, possibly better, way to do what you want.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]