Using regex(3)

Olivier Nicole on at cs.ait.ac.th
Wed Jun 22 06:48:06 GMT 2005


> 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


More information about the freebsd-questions mailing list