here's what the regexp page says:

  The Simple Regular Expressions described below differ from the
  Internationalized Regular Expressions described on the regex(5) manual
  page in the following ways:

    * only Basic Regular Expressions are supported
    * the Internationalization features--character class, equivalence class,
      and multi-character collation--are not supported.

if these are indeed the only differences then I can add a REG_NOI18N
regcomp() flag -- but I need verification of exactly what that means
does that mean that it is byte based, or does . match a multibyte char?

On Tue, 24 Mar 2009 20:05:43 +0100 Jennifer Pioch wrote:
> On 3/24/09, Glenn Fowler <[email protected]> wrote:
> >
> >  On Tue, 24 Mar 2009 19:41:17 +0100 Jennifer Pioch wrote:
> >  > Glenn, could we get a switch in ~(options)pattern to select between
> >  > regex and regexp() syntax? Solaris /usr/bin/grep uses regexp() while
> >  > /usr/xpg4/bin/grep uses regex() and a switch to choose between both
> >  > apis would help with the migration of old scripts.
> >
> >
> > can you point me to the diffs between the RE sytnax in the two apis?
> >  I don't need the api diffs, just the RE diffs

> How can I create such diffs?

> http://docs.sun.com/app/docs/doc/816-5175/regexp-5?l=en&a=view&q=regexp
> is the regexp api used by /usr/bin/grep and
> http://docs.sun.com/app/docs/doc/816-5175/regex-5?l=en&a=view&q=regex
> is the standard regex api used by /usr/xpg4/bin/grep

> Jenny
> -- 
> Jennifer Pioch, Uni Frankfurt

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to