joddie/pcre2el

Invalid conversion between elisp and pcre

stettberger opened this issue · 0 comments

ELISP> (rxt-elisp-to-pcre (rx-to-string '(optional (0+ " "))))
" *?"
ELISP> (rx-to-string '(optional (0+ " ")))
"\\(?:\\(?: *\\)?\\)"
ELISP> 

*? is the non-greedy repeat operator, not the optional + greedy repeat.