pcre2el
pcre2el copied to clipboard
Invalid conversion between elisp and pcre
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.