今日已更新 457 条资讯 | 累计 41677 条内容
关于我们

A web regex visualiser with PCRE2

/u/blitter_era 2026年09月10日 18:12 0 次阅读 来源:Reddit r/programming

Author here. The interesting part is how it's built. The whole engine is PCRE2 compiled to WASM, ~92 KB over the wire, and no roundtrips to the server. Probably has a few bugs I haven't found out yet :) The PCRE2 engine compiles the pattern with callouts enabled which inserts a callout before every item,and each callout carries the source offset and length of the item that follows it. The visualisations are based on capturing the callout data. You can try it here: https://roundtoe.com/regexray PS. just noticed the post shows the social card for the site, any way to suppress that? submitted by /u/blitter_era [link] [留言]

本文内容来源于互联网,版权归原作者所有
查看原文