book-content/%root/test-collection/enhanced-frontend/test-regex-highlight.md

6.2 KiB

title configurations
RegEx 着色
regex.highlight prism
true true

regex highight

source

base colorized by 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