Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 565 Bytes
// Include the Genius config file
require_once 'Core/';
// The gosRegex functions can be used exactly as their preg_* counterparts
gosRegex::match('/foo (bar)/', 'foo foo bar foo baz foo', $matches);
// But if you do something that causes an error, the gosRegex functions let you know
try {
// Example from
gosRegex::match('/(?:\D+|<\d+>)*[!?]/', 'foobar foobar foobar');
} catch (gosException_RegularExpression $e) {
print "Got a regex error: " . $e->getMessage() . "\n";