visualRegex

Visual regular expressions.

For now, only support JavaScript's syntax.

Usage

import visualRegex from 'visual-regex';

var canvas = visualRegex(/https:\/\/wangwl\.net\/r\/vr/);

canvas.style.width = (canvas.width / 2) + 'px';
canvas.style.height = (canvas.height / 2) + 'px';
document.body.appendChild(canvas);

HomePage

https://wangwl.net/r/vr