Variable: nrepl-listening-inet-address-regexp

nrepl-listening-inet-address-regexp is a variable defined in nrepl-client.el.

Value

"nREPL server started on port \\(?1:[0-9]+\\)\\|Started nREPL server at \\(?2:.+?\\):\\(?1:[0-9]+\\)"

Documentation

A regexp to search an nREPL's stdout for the address it is listening on.

If it matches, the address components can be extracted using the following match groups:
1 for the port, and
2 for the host (babashka only).

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/nrepl-client.el
(defconst nrepl-listening-inet-address-regexp
  (rx (or
       ;; standard
       (and "nREPL server started on port " (group-n 1 (+ (any "0-9"))))
       ;; babashka
       (and "Started nREPL server at "
            (group-n 2 (+? any)) ":" (group-n 1 (+ (any "0-9"))))))
  "A regexp to search an nREPL's stdout for the address it is listening on.

If it matches, the address components can be extracted using the following
match groups:
1  for the port, and
2  for the host (babashka only).")