Is there a way to specify a range as a data type
Posted: Wed Apr 11, 2018 4:47 pm
I have an attribute that I'd like to have a range of values as it's data type. By which I don't mean: a number between x and y, but more like x-y
For example <myelement myattribute="7-10" /> or <myelement myattribute="14-240" />
I'm guessing I might have to use a regular expression for this, but I was wondering if there was a simpler way that already exists?
For example <myelement myattribute="7-10" /> or <myelement myattribute="14-240" />
I'm guessing I might have to use a regular expression for this, but I was wondering if there was a simpler way that already exists?