Re: unexpected regexp behaviour using 'A|B|C.....'

2011-07-28 Thread Peter Otten
AlienBaby wrote: > When using re patterns of the form 'A|B|C|...' the docs seem to > suggest that once any of A,B,C.. match, it is captured and no further > patterns are tried. But I am seeing, > > st=' Id NameProv Type CopyOf BsId > Rd -Detailed_State-Adm

unexpected regexp behaviour using 'A|B|C.....'

2011-07-28 Thread AlienBaby
When using re patterns of the form 'A|B|C|...' the docs seem to suggest that once any of A,B,C.. match, it is captured and no further patterns are tried. But I am seeing, st=' Id NameProv Type CopyOf BsId Rd -Detailed_State-Adm Snp Usr VSize' p='T