Skip to content

Simple but pretty complete OCaml regex engine

Notifications You must be signed in to change notification settings

Acssiohm/ORegex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

OCaml Regex Engine

Installation

It's just a single OCaml file with no libraries used, so you can copy it or clone and then use it with utop #use "main.ml";; or compile it.

Features

Supported actions

list : match , capture Descriptions :

  • match : you can search for a pattern re within a text txt with recognizer re txt or recognize (compile_regex re) txt
  • match with captures : you can search for a pattern re that contains captures within a text txt with : capturer re txt or capture (compile_capture_regex re) txt

Supported regex syntax

This section can also be used as a cheatsheet for regex supported here

quick list : *, +, [...], ^, $, (...), ?, [^...], \s,\S,\d,\D,\w,\W,.,|

currently not supported : \b,\B,(^...), ..etc (non exhaustive, to be completed)

About

Simple but pretty complete OCaml regex engine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages