Search

I have a regexp filtering question:

I have a page that has company listings. Also, on that page I have a search box and alphabet... I want people to be able to search companies by name OR starting sitter.

Here's what I currently have:

regexp:{$url-firm-name:.}, regexp:^{$url-starts-with:.}

$url-firm-name works fine, but$url-starts-with doesn't result any entries...

What am I doing wrong?

Anything after the first regexp: statement is evaluated as a regular expression. You can't chain them like that I'm afraid.

Any strategic advice or pointer as how to aproach this situation? I can't wrap my head around this... :( I want to use one field to do regexp filtering on two params.

This isn't tested, but maybe something along the lines of

regexp:(^{$url-starts-with}|{$url-firm-name}|.*)

if I understand what you need.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details