--- title: RegEx 着色 configurations: regex.highlight: 'true' prism: 'true' --- # regex highight [regex-colorizer]: https://github.com/suk-ws/regex-colorizer [Prism]: https://prismjs.com [source][regex-colorizer] base colorized by *[regexr.com](https://regexr.com)* ^(?:https?://)?((?:(?:c\\.)?vx|fx|www\\.)?twitter\\.com)/((\w{1,})/status/(\d+)(?:/photo/(\d+))?)/?(\?[\w&=-]+)?$ regex code auto-colorized by *[regex-colorizer]* ^(?:https?://)?((?:(?:c\\.)?vx|fx|www\\.)?twitter\\.com)/((\w{1,})/status/(\d+)(?:/photo/(\d+))?)/?(\?[\w&=-]+)?$ regex code auto-colorized by *[Prism]* `^(?:https?://)?((?:(?:c\.)?vx|fx|www\.)?twitter\.com)/((\w{1,})/status/(\d+)(?:/photo/(\d+))?)/?(\?[\w&=-]+)?$`{.lang-regex} regex code itself `^(?:https?://)?((?:(?:c\.)?vx|fx|www\.)?twitter\.com)/((\w{1,})/status/(\d+)(?:/photo/(\d+))?)/?(\?[\w&=-]+)?$` regex code auto-colorized by *[regex-colorizer]* \\92\\1^\\d{0,3,5}\\n{9c}\\b{0,2}(\\B{,5}){3})\\01{}\\2{,}\\001${0,} regex code itself `\92\1^\d{0,3,5}\n{9c}\b{0,2}(\b{,5}){3})\01{}\2{,}\001${0,}` regex code auto-colorized by *[regex-colorizer]* ([A-Z])\\w+\\x7kk\\xaf5ke\\xne\\u17kc\\u1ea7nss regex code itself `([A-Z])\w+\x7kk\xaf5ke\xne\u17kc\u1ea7nss`