/pattern/flags and it splits itself$1…$99 group · $<name> named group · $& whole match · $` text before · $' text after · $$ a dollar signCommon patterns with sample text. Loading one replaces the pattern, flags, text and replacement.