Quantcast
Channel: stoimen's web log » Pattern matching
Browsing latest articles
Browse All 2 View Live

Zend_Controller_Router_Route_Regex – the Power of Regular Expressions

I posted once of custom URLs within Zend Framework, but back than I wasn’t quite sure enough there isn’t a better, more elegant way to do this job. Of course as it appears, there is! With no need to is...

View Article



Flexible JavaScript – Replace in a String

Here’s yet another example of the JavaScript flexibility. You can simply call .replace() on every string and pass a regex as a parameter! var str = 'my simple string'; str.replace(/ /g, '-'); // now...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images