In php I can write
preg_match('/a(.*)b(.*)c/', '00a123b456c00', $result);
and in $ result I will get 123in $result[1], 456in $result[2]and a123b456cin $result[0]. How to take the text matched with the regular expression and its different parts, as in Emacs Lisp?
source
share