[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [tosca] FW: TOSCA regex format?
I received the following question from a TOSCA user regarding regular expressions:
Â
I donât see any mention of the regular _expression_ syntax which TOSCA is following.
Unfortunately this can vary a bit.
Â
As an example:
-ÂÂÂÂÂÂÂÂÂ YANG, with its XML heritage, uses XML family syntax
oÂÂ A regex is implicitly always anchored start and end (^ and $ are always implied at the ends)
-ÂÂÂÂÂÂÂÂÂ JSON Schema uses _javascript_ syntax
oÂÂ A regex is never implicitly anchored so you need to add ^ and $ for most regexp on an attribute
Â
I think the TOSCA spec has to make a statement on this, either to pick a format or say it is engine dependent (which I donât think is the best choice as this affects portability).
Â
I agree that the spec should be very clear about the regex syntax. Any opinions?
Â
Thanks,
Â
Chris
Â
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]