From: <rob...@ya...> - 2001-11-03 17:17:14
|
hi, i am having trouble running the following script in jython (21a3). it works in python (python2.0). >>>>>SCRIPT<<<<<<<< import re EOLZre = re.compile(r'(?:\r\n|\r|\n|\Z)') src = """ This is line one! This is line two! """ pos = 0 size = len(src) while pos < size: match = EOLZre.search(src, pos) pos = match.end() print "match:" + str((match.start(), match.end())) >>>>>OUTPUT<<<<<<<< PYTHON match:(0, 1) match:(18, 19) match:(36, 37) JYTHON match:(0, 1) match:(2, 2) match:(2, 2) match:(2, 2) match:(2, 2) match:(2, 2) any explanations beside that its a bug? ciao robertj ------------------------------------------------------------ Robert Kuzelj the trinity of desirables of (software) architecture: Firmitas, Utilitas, Venustas (marcus vitruvius 20 BC) strength, utility, beauty |