[oXygen-user] Bug in regular expression negative lookbehind?

David Sewell
Thu Nov 11 14:05:31 CST 2010

Platform: oXgen 12.0, build 2010100114
OS X 10.6.4, standalone Java version


Given this text:

   It is very cooooooold today.

The regular expression search


should match only two 'o's, the one after 'c' and the one after 't' (the
regex says "match any o not preceded by 'o'"). Correct?

When I try it, the search matches every 'o'.

Positive lookbehind, and lookahead searches, seem to be okay but I have
not tested very much.

David S.

David Sewell, Editorial and Technical Manager
ROTUNDA, The University of Virginia Press
PO Box 400314, Charlottesville, VA 22904-4314 USA
Email:    Tel: +1 434 924 9973
Web: http://rotunda.upress.virginia.edu/

More information about the oXygen-user mailing list