Name: ValaVerbalExpressions
Owner: VerbalExpressions
Description: Vala regular expressions made easy
Created: 2016-04-12 04:24:14.0
Updated: 2017-11-05 15:31:02.0
Pushed: 2016-12-15 03:01:48.0
Homepage: null
Size: 19
Language: Vala
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Regular expressions in Vala made easy
To build this library, you need Stew, and Vala >= 0.28
clone https://github.com/VerbalExpressions/ValaVerbalExpressions.git
alaVerbalExpressions/
install
To install system-wide, follow the Stew help pages
This library uses Valadate for its test (not yet functional)
var verbex = new VerbalExpression()
.start_of_line()
.then("http")
.maybe("s")
.then("://")
.maybe("www.")
.anything_but(" ")
.end_of_line();
// Create an example URL
var test_me = "https://www.vala-project.org";
// Verify using VerbalExpression's matches() method
assert_true(verbex.matches(test_me));
Patches accepted for the following features
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
Please keep the code style, whitespace changes that do not adhere to the coding standart won't be merged.
The code in this project is licensed under MIT license. Because this is Vala code, however, a binary including this code will end up following the LGPL v2.1, as the GLib license implies.