William, Kent,
> Does the last pattern work? I think it matches any string with two
> consecutive non-spaces, e.g. "AA AA" ("AA" + two-spaces + "AA").
>
> To prevent multiple spaces I think we probably need something like "([^ ]+
> )*[^ ]+" (which replaces the last three patterns).
>
> Do XML regexes support \S (not-whitespace)? If so then I think that "(\S+
> )*\S+" covers everything (although also excludes FF and any other whitespace
> characters if there are any).
William is right in his observation. I had on my todo list to point this out,
but I got side tracked :)
An easy way to express this in YANG (1.1) is:
// reject values with two consecutive spaces
pattern " " { // two spaces
modifier invert-match;
}
/jan
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod