Using regular expressions in views fields

XKCD regular expressions

I try to avoid regular expressions whenever I can, but sometimes it's just the easiest/fastest way to get stuff done. For example, I had these ugly RSS aggregated titles which were full of HTML entities and other jibberjabber. They were displayed using Views and the core aggregator. Using Views Field Rewrite I cleaned up the titles with some regexp.

SOLR search within a radius distance in Drupal 6/7

Read More »


This is the company blog of
Drupal specialist

We are located in Breda (Netherlands) and build websites using Drupal. More about us.

Content on this blog is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Netherlands License.

Creative Commons License

Recent Comments