hello everyone.

after making some tests with the $regsubex ident, with a friend, we figured out this problem:

Why does
Quote:
//echo -a > $regsubex(Ga is Ga is Ga,/(is) (Ga)/g, > \t <)

returns
Quote:
> Ga > is < > Ga <

instead of returning
Quote:
> Ga > is Ga < > is Ga <

?

It returns the correct thing when using
Quote:
//echo -a > $regsubex(Ga is Ga is Ga,/(is Ga)/g, > \t <)


Our questions are:

What's the difference between /(is) (Ga)/ and /(is Ga)/ ? (we know that in the second case there's only \1 which exists)

Why does it search differently in these 2 cases ?

Is there some weird manner the regexp library treats them ? If so, how ?

What's the exact definition of the options of the $regsubex ident ?

Quote:
Subtext can also contain special markers where \0 = number of matches, \n = match number, \t = match text, \a = all match items, and \A which is a non-spaced version of \a


Can someone please, describe them in detail ? In the pcre.txt document, they are not present.

Thx in advance smile