Function: TeX-regexp-group-count
TeX-regexp-group-count is a byte-compiled function defined in tex.el.
Signature
(TeX-regexp-group-count REGEXP)
Documentation
Return number of groups in a REGEXP. This is not foolproof:
you should not use something like [\(] for a character range.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-regexp-group-count (regexp)
"Return number of groups in a REGEXP. This is not foolproof:
you should not use something like `[\\(]' for a character range."
(let (start (n 0))
(while (string-match "\\(\\`\\|[^\\]\\)\\(\\\\\\\\\\)*\\\\([^?]"
regexp start)
(setq start (- (match-end 0) 2)
n (1+ n)))
n))