service-id can only contain alphanumeric [A-Za-z0-9] or any number of dashes -, but the last character cannot be a dash.
My idea is this:
First, initial chunk is always alphanumeric [A-Za-z0-9] of length 0-to-N.
Then, remaining chunks would be some combination of -, and [A-Za-z0-9].
Finally, the remaining chunks are captured by the greedy quantifier *.
Plugging this into the parent expression causes catastrophic backtracking.
I would like to avoid the recursive or the greedy approach for this reason.
Preliminary overview of Google Services indicate OAuth Flow and API Key are symmetrical across various services such as Gmail, Drive, YouTube, Android, etc.
Redundant entries would be tedious to enumerate respective application.
Some entries are not consolidated and entered separately given varying degrees of risk and exposure in standard implementations.
Would appreciate any discussion on how to consolidate approach towards Google services.
Regular expressions may vary in usage but I would like to verify some samples against grep.
Not entirely sure I want to be pointing to existing codebases with real examples, since I find that in poor taste.
Would appreciate suggestions for posting verification of regular expressions.
A number of competing repositories either have invalid or deprecated expressions, this an informal attempt to at least update these sources in one place.