ALFERIUS, это же есть. Смотрите в:
Цитата Function Reference, StringRegExp :
…
( ... ) : Group. The elements in the group are treated in order and can be repeated together. e.g. (ab)+ will match "ab" or "abab", but not "aba". A group will also store the text matched for use in back-references and in the array returned by the function, depending on flag value.
|
и в:
Цитата Function Reference, StringRegExpReplace:
…
replace: The text to replace the regular expression matching text with. To insert matched group text, \0 - \9 (or $0 - $9) can be used as back-references.
…
|