I wrote:
<snip>
    # Width/Height
    elsif( lc($value) eq 'width' | lc($value) eq 'height'){
        $special = { type => 'regex',
                     regex =>
'[1-9]\d*(\x27){1}\s*[1-9]\d*(\x22){1}|[1-9]\d*\s*(m)?'};
    }
<snip>

As I mentioned this was just playing and the above was a first stab
at a RegEx to allow things like 10'3" or 12 (assumed metric units)
or 1.2m - but it was an early draft and the one above insists on the
inches section if the measurement is in imperial (and won't allow
0"), and the metric side doesn't have the bit in to cope with the
decimal point. But you get the idea...

Ed



_______________________________________________
Tilesathome mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/tilesathome

Reply via email to