Clean, fluent interface for the preg_* functions. Elegant object oriented regular expression creation and processing.

0.2.0 2014-04-01 02:22 UTC


Latest Stable Version Build Status Code Coverage

A library that abstracts the preg_* function family with syntactic sugar, simplicity, and consistency so you can stay up with [the haps on the craps](,'Ice Cube - Today Was a Good Day').


  • Lean, easy to read syntax
  • Fluent interfaces
use RegSexy\RegEx;

$subject = 'Cats are pretty funny I love, that, what is called… "ICanHasCheezburger?"!, '
         . 'is pretty great… but *really* I\'m more of a dog person. Got 2 little Chihuahuas at home!';

    RegEx::make( '(Chihuahua|Dachsund|Corgi)s' )
        ->match( $subject )

Hat Tip

This project draws inspiration from:


Creative Commons License
RegSexy by Mark Fox is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.