﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
18166	"[PATCH][RFC] New mapcss function: ""filter"". to validate Italian housenumber tag"	francians	team	"Hello,

I built my regex this way:

{{{
#!mapcss
*[addr:housenumber][addr:housenumber !~ /^[0-9]+(([a-z]*)|(\/[0-9]+))(\b rosso\b)?$/][inside(""IT"")] {
	throwWarning: tr(""Numero Civico"");
	group: ""MapThisWay"";
}
}}}

to check all possible italian values:

- 1          <---- will match
- 1bis       <---- will match
- 1/1        <---- will match
- 1a rosso   <---- will match
- 1;3        <---- will not match
- 1,3        <---- will not match

but I don't know a way to check each value when it's a csv (semicolon or comma separated).
I could do: if value contains comma, split by comma else split by semicolon... right?
But with the list I cannot check if every value matches my rule...

What do you think about a ""filter"" method that given regex + list could return all matching elements?
So to close the circle, I can count original list, count filtered list and if the number is not the same give the error.

Please let me know what you think and if it could be helpful a patch

Many Thanks
Francesco"	enhancement	closed	normal		Core validator		wontfix	mapcss filter italian housenumber validator	
