PHPVerbalExpressions - the easiest way to start with Regular Exp... > stdout.in Ievgen Kuzminov IT blog
Es tut mir leid, aber die deutsche Version der Website hat noch sehr wenige Artikel. Besuchen Sie bitte English Version alle interessante Artikel zu sehen!
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
Ievgen
Kuzminov "iJackUA"
Web Team Lead
in MobiDev (Charkiw, die Ukraine)
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

Notizen


Did you know ? Vagrant (1.5+) "Error: Remote connection disconnect. Retrying..." while loading is not a bug. It just try to detect when VM is loaded. Yep... very confusing.



Slick - really looks like "the last JS carousel you'll ever need". Responsive, touch-enabled, mouse-dragging, dynamic add/remove.



Tried yii2-pjax widget on blog. A few moment of work and you can navigate through Notes without page reload. Really cool!