Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jun 2005 13:48:00 +0700 (ICT)
From:      Olivier Nicole <on@cs.ait.ac.th>
To:        on@cs.ait.ac.th
Cc:        questions@freebsd.org
Subject:   Re: Using regex(3)
Message-ID:  <200506220648.j5M6m0XI089322@banyan.cs.ait.ac.th>
In-Reply-To: <200506220411.j5M4BQ6G087888@banyan.cs.ait.ac.th> (message from Olivier Nicole on Wed, 22 Jun 2005 11:11:26 %2B0700 (ICT))
References:  <200506220411.j5M4BQ6G087888@banyan.cs.ait.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
> I must missunderstand how to use regex(3).

To add a bit, running the same program on Linux gives the expected results:

regexpr=a(.)c
number of substrings=1
return from regexec=0
nmatch=0
p0.so=0 p0.eo=0
p1.so=0 p1.eo=0
p2.so=0 p2.eo=0
p3.so=0 p3.eo=0
return from regexec=0
nmatch=1
p0.so=0 p0.eo=3
p1.so=0 p1.eo=0
p2.so=0 p2.eo=0
p3.so=0 p3.eo=0
return from regexec=0
nmatch=2
p0.so=0 p0.eo=3
p1.so=1 p1.eo=2
p2.so=0 p2.eo=0
p3.so=0 p3.eo=0


Olivier



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506220648.j5M6m0XI089322>