[x3d-public] SFImage regex

Andreas Plesch andreasplesch at gmail.com
Sat Jun 9 08:45:01 PDT 2018


On Sat, Jun 9, 2018 at 8:30 AM, Don Brutzman <brutzman at nps.edu> wrote:
> On 6/8/2018 3:13 PM, Don Brutzman wrote:
>>
>>
>> *  These regexes all assume that leading/trailing whitespace has been
>> removed. It is possible to prepend/append regex constructs such as (\s)+ to
>> consume outer whitespace.
>
>
> correction: zero or more whitespace characters (\s)* rather than one or more
> whitespace characters (\s)+

Yes, but it is not necessary to group the \s class: \s*. I am not sure
if prepending/appending is preferable to using the collapse whitepace
XML restriction. Since there are more fluent regex than XML readers,
it may be.

-Andreas



More information about the x3d-public mailing list