pcre2el icon indicating copy to clipboard operation
pcre2el copied to clipboard

Invalid conversion between elisp and pcre

Open stettberger opened this issue 6 years ago • 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.

stettberger avatar Feb 01 '19 20:02 stettberger