Two Regexp filters on one field
This is an open discussion with 3 replies, filed under General.
Search
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.
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:
$url-firm-name
works fine, but$url-starts-with
doesn't result any entries...What am I doing wrong?