Hello,
I receiving following list form external data resource:
my_list = [
"dev-app1",
"dev-app2",
"test-app1",
"test-app2",
"prod-app1",
"prod-app2"
]
Which elements are dynamic and cannot be predicted. So I’m need to exclude all elements which consist two patterns like dev-* and test-* to receive:
my_list = [
"prod-app1",
"prod-app2",
"prod-xxx",
]
Could you please advice how to achieve this?