-
regex-engine目前处于测试状态,对输入的正则表达式以及给定文本进行匹配, 识别成功的子串以空格隔开。
-
目前能匹配基本正则表达式,以及两种扩展表达式:正反向预查 而且我相信只要能精简数据结构,以后可以更容易引入更多功能: 例如:重复,匿名捕获,任意字符识别等等。
-
使用示例:
匹配部分前后用一个空格隔开-
闭包
输入正则表达式: a*
输入正文: vfdbvjekbnjwkaabrbaaaabrebe显示输出: vfdbvjekbnjwk aa brb aaaa brebe
-
正向预查
输入正则表达式: Windows(?=7|8)
输入正文: vvnrekbwnkjcxnvveancvehwvuirwehrrbgvWindowsvvujenvWindows7vavnkjWindows8?bnfl显示输出: vvnrekbwnkjcxnvveancvehwvuirwehrrbgvWindowsvvujenv Windows7 vavnkj Windows8 ?bnfl
-
-
Notifications
You must be signed in to change notification settings - Fork 0
legobadman/regex-engine
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published