--- In [email protected], sgp <[EMAIL PROTECTED]> wrote: > > Sheri wrote: > > > The alternatives are searched from left to right. So you could never > > match the \r\n or the \n\r combinations, because after it matches \n > > or \r it would quit. Same idea when searching for alternate words, > > e.g., don't search for: > > > > the|there > > > > because "there" will never hit. Has to be: > > > > there|the > > I incorrectly assumed that matching alternatives is greedy like > matching repetitions.
That's sort of how it works with the dfa option. Using pcreMatch with the dfa option, "the|there" matches "there", whereas it normally matches "the". The dfa option invokes an alternative matching engine. It has some limitations; see Appendix III in the help file. Regards, Sheri
