Skip to content

regular expression engine based on deterministic finite automata(DFA)

Notifications You must be signed in to change notification settings

Salpadding/regexp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Regexp

a regular expression engine based on deterministic finite automaton

warning: supports ascii character only

package main

import (
	"fmt"

	"github.com/Salpadding/regexp/re"
)

func main() {
	r, _ := re.Compile(`[a-z0-9A-Z]+@[a-z0-9A-Z]+\.[a-z0-9A-Z]+`)
	fmt.Println(r.Match("m6567fc@outlook.com"))
	fmt.Println(r.Match("abbbbb@yyy"))
}

Releases

No releases published

Packages

No packages published

Languages