Score:0

Exposed filter on a number field also shows results when filtering with less digits

cn flag

I have a number field that contains mostly 4/5-digit numbers. This field is exposed in a view. I want to also show results when putting only the first, second, and third digits of the number into the exposed filter.

I already tried to set a regular expression (^\d{1,5}$) as a filter criteria, but then I also get results where the entered digits are in the middle of the number. For example, entering 78 in the filter, I get number like 43781.

I'm not sure if this is a Drupal or a regex specific question.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.