oniguruma
Onigmo
oniguruma | Onigmo | |
---|---|---|
2 | 3 | |
2,205 | 611 | |
- | - | |
6.8 | 0.0 | |
about 1 month ago | over 1 year ago | |
C | C | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
oniguruma
-
Building a syntax highlighting extension for VS Code
As a ruby developer, I was happy to find that VS Code / TextMate grammar files use the same regular expression engine called Oniguruma as ruby itself. Thus, I could be sure that when trying my regular expressions in my favorite online regex tool, rubular.com, there would be no inconsistencies due to the engine inner workings.
-
Developer Diaries: How We Built a Better Browser-Based IDE with Monaco
However, parsing these files requires a C library called Oniguruma to parse and execute these files. Because this library does not run in a pure JavaScript environment – which was a requirement for Monaco historically due to browser support – Monaco ships out-of-the-box with a different grammar language.
Onigmo
- Want to help bring Ruby support to Regex101 (online regexp suite)?
-
Question regarding a Regular Expression
Ruby Regexp comes from Onigmo, so there is also Onigmo's doc. I noticed that the "backreference with recursion level" exists in Onigmo's doc but is missing from Ruby's doc.
-
The Awk State Machine Parser Pattern (2018)
>Ruby even supports Perl regular expressions
No, Ruby Regexp is based on the https://github.com/k-takata/Onigmo library. There are plenty of differences compared to Perl, for example `^` and `$` anchors always match start/end of lines without needing a flag, subexpression syntax uses `\g` instead of `(?N)` and so on.
What are some alternatives?
RegEx101 - This repository is currently only used for issue tracking for www.regex101.com
Melon - A generic cross-platform C library that includes many commonly used components and frameworks, and a new scripting language interpreter. It currently supports C99 and Aspect-Oriented Programming (AOP).
python-hyperscan - 🐍 A CPython extension for the Hyperscan regular expression matching library.
obs-studio - OBS Studio - Free and open source software for live streaming and screen recording
jsregexp - JavaScript regular expressions for Lua
RegExtract - Clean & simple idiomatic C# RegEx-based line parser that emits strongly typed results.
sreutils - The UNIX holy trinity, reimagined
vscode-oniguruma - Oniguruma Bindings for VS Code
regex - Regular Expression aka regex. Some examples like, match, find, replace. Mix of usage, bash, powershell, notepad++