aws-sdk-lua icon indicating copy to clipboard operation
aws-sdk-lua copied to clipboard

Add support for string patterns

Open britzl opened this issue 7 years ago • 4 comments
trafficstars

The string patterns are more complex than what the built-in Lua pattern matching system can support. Is it worth the time to implement somehow?

britzl avatar Nov 05 '18 08:11 britzl

How do they compare to regexes?

SirLynix avatar Nov 05 '18 16:11 SirLynix

The Lua pattern matching system resembles regex quite a lot bit its quite a bit simpler. I've seen some of the regex patterns in the AWS SDK API specs that would be hard (impossible?) to port to Lua patterns.

britzl avatar Nov 05 '18 22:11 britzl

I was asking about Amazon string patterns, how do they compare to regexes (are they regexes)?

SirLynix avatar Nov 06 '18 11:11 SirLynix

Oh, ok. I believe they are normal regexes. I could have sworn that I had read some API docs mentioning which specific regex flavour it is but now I can't find it...

At least these two look like standard regexes:

https://github.com/britzl/aws-sdk-lua/blob/master/apis/gamelift-2015-10-01.normal.json#L1181-L1191

britzl avatar Nov 06 '18 12:11 britzl