I have a view that fetches a Belgian postal code, which always has 4 digits, from the URL and uses it as contextual filter to only show nodes for that postal code. This works fine.
I would like to also show sub-localities in this view. Given a postal code equal to 9990, the view should show the node for 9990 but also the nodes for 9991 and 9992, and other nodes whose postal code's first three digits are 999.
Is it possible to use the regex operator in the view filter for this, for example REGEXP_EXTRACT(%,"^.{0,3}")
which doesn't actually work?
Preferably I'd like to solve this in the view itself and not with code.