Perl Compatible Regular Expressions (PCRE) mode for CodeMirror
npm install codemirror-mode-pcreThis is a CodeMirror mode that brings syntax highlighting for Perl Compatible Regular Expressions (PCRE).
pcre.js and pcre.css at adequate locations in your HTML structure.mode: 'pcre' when creating your CodeMirror instance.x flag) and actually enables it by default. This can be turned off by passing extended: false when creating the CodeMirror instance.pcre.css file.Breaking change: starting with version 2.0.0, the cm-end-group style is no longer supported and should no longer be used. It is replaced with cm-start-group.
\p and \P);Those may come in the future though.