> <span class="binding-type">function</span> <span class="binding-type"><a href="https://github.com/janet-lang/janet/blob/894cd0e//home/calvin/code/janet-lang.org/build/spork/regex.janet#L137">source</a></span> <pre class="binding-text">(compile pattern)

Compile a subset of regex to a PEG if pattern is a string. If pattern is a PEG, will return the PEG as is.</pre><a href="https://janetdocs.org/regex/compile">Community Examples</a></div><hr><div class="binding"><span id="regex/find" class="binding-sym">reg