Function: consult--valid-regexp-p

consult--valid-regexp-p is a natively compiled function defined in consult.el.

Signature

(consult--valid-regexp-p RE)

Documentation

Return t if regexp RE is valid.

Source Code

;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defun consult--valid-regexp-p (re)
  "Return t if regexp RE is valid."
  (condition-case nil
      (progn (string-match-p re "") t)
    (invalid-regexp nil)))