Skip to content
Simple Safe Regex Provider compatible with Fable
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore First commit Apr 19, 2019
README.md First commit Apr 19, 2019
RELEASE_NOTES.md First commit Apr 19, 2019
build.fsx First commit Apr 19, 2019
package-lock.json First commit Apr 19, 2019
package.json First commit Apr 19, 2019

README.md

Fable.RegexProvider

Simple F# Regex Type Provider compatible with Fable.

Usage

IMPORTANT: Requires fable-compiler 2.2.0 or higher.

You can find a usage sample in the test directory of this repository.

  • First, install the package Fable.RegexProvider from Nuget.
  • Then create a regex with Fable.RegexProvider.SafeRegex.Create<"^hello world!?$">(). If the pattern is not valid, you will get a compile-time error.

Please contribute to make the type provider a great tool for all Fable users!

You can’t perform that action at this time.