Trying to regex in ruby using this:
/UTC\s.\d{4}/
This picks up both
UTC +0000 UTC -0800
The codebase I'm working with uses:
/UTC\s\-?\d{4}/
Which picks up
UTC +0000 UTC -0800
The period isn't the best alternative, because it's going to pick up anything besides the acceptable +/-. Thoughts?
Interesting. I'll think about whether I want to validate incorrect versions or not. Thanks Brett!