A web regex visualiser with PCRE2

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: roundtoe.com/regexray PS. just noticed the post shows the social card for the site, any way to suppress that?

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论