PHPVerbalExpressions - the easiest way to start with Regular Exp... > stdout.in Ievgen Kuzminov IT blog
Note

PHPVerbalExpressions - the easiest way to start with Regular Expressions. Write it in OOP way

$regex=new VerbalExpressions;
$regex ->startOfLine()
        ->then("http")
        ->maybe("s")
        ->then("://")
        ->maybe("www.")
        ->anythingBut(" ")
        ->endOfLine();
$regex->test("http://d.com")

A lot of implementations on other languages exist

comments powered by Disqus
Евгений
Кузьминов "iJackUA"
Web Team Lead
в MobiDev (Харьков, Украина)
Code in Ruby and Elixir, but still love PHP. Explore ES6 and Vue.js. Explore databases, use Ubuntu and MacOS, think about IT people and management

Заметки


I was waiting for it so long :) Videoconverter.js - FFmpeg converted in JavaScript via Emscripten. It works in client browser, really works. It does not support x264 codec yet, but could be useful to create a video preview on client side etc.