Instead of having "easy" and "complex" regexes, rename them to be "strict" and "lax". Then follow the pattern of "strict" versus "lax" used by the other regexes. "lax" is used when initially parsing user data in page and "strict" is used by editor reparsing strings it already knows to be valid (to get offsets for replacing in doc).

For the `getValidBezierParams(match, def)` function, I think `match[1]` will contain the parameter string, so you'll need to do something like the following to separate them into an array:

```
    var params = match[1].split(",");
```