VerbalExpressions/ValaVerbalExpressions

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ValaVerbalExpressions

Regular expressions in Vala made easy

Installing / Getting started

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

Developing

This library uses Valadate for its test (not yet functional)

Usage
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));
Missing Features

Patches accepted for the following features

Contributing

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.

Licensing

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.