Jump to content

Regular expressions in search alias? [Was: How to ignore characters in search?]


Recommended Posts

Hallo

a store is listing products which have strings like "135/85 R14" in the description text.

The requirement is that searching for 1358513 returns a product having "135/85 R13".

The slash "/" is already ignored, the " R" does not. 

So searching for "13585" give actual results; searching for 1358513 gives no results.

 

UPDATED QUESTION

How could I enter a regular expression as the alias in the search configuration?

I.e. it should be something like:

alias: ^[0-9]{2,3}.*[0-9]{2}.*[0-9]{2,3}$
search: ^[0-9]{2,3}\/[0-9]{2}\sR[0-9]{2,3}$

Thanks in advance

Edited by raffaelet (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...