Is there any way to extract regular expression's group in Emacs Lisp?
For example, how can I get "std" and "1" from "std1" using regex
^\(std\|bcp\|fyi\)\([0-9]+\)$
like JavaScript
/^(std|bcp|fyi)([0-9]+)$/.exec("std1")[1] //= std
/^(std|bcp|fyi)([0-9]+)$/.exec("std1")[2] //= 1
http://www.gnu.org/software/emacs/manual/html_node/elisp/Regexp-Functions.html#Regexp-Functions I read this page but couldn't grasp how to achive this.