Search the Community
Showing results for tags 'regex'.
-
Hey all, I've been building a new feature on our PW site and the URL hooks are exactly what the doctor ordered. I am developing a RESTful web API to allow external platforms to integrate with our site. The API endpoints are namespaced at /api/v1. I am having trouble making use of the named rout...
-
Some context: I want to use PHP variables in my CSS (more info below) and found a solution on CSS-tricks that looks fairly elegant and somewhat solid to me. It's pretty simple, I created a file style.css.php inside the site/templates/ directory and load that in my page head. In style.css.php is the...
-
I really would like to see a sanitzer that uses a regex!! $sanitize->regex($value, $regex); Simply return empty if the value doesn't match. It would be even better if we got an extra option for replacements and or callback functions. If i have seen it right, there are even sanitizer tha...
-
Hi foks (Not sure if this would make more sense in the dev forum, feel free to move if necessary...) I am trying to do the following... In $page->introtext (a textfield with markdown parser) 1. find the link in which the href matches my $current_urlsegment var 2. Change the href to...