Gmatch pattern for uppercase/lowercase characters seperated by a period

So, let’s say I have a string Hello a.a.a d.d.d.d.d. I want a gmatch pattern to return

a.a.a
d.d.d.d.d

I am very confused on how to stop my current gmatch pattern ([%a%.%a]+) returning

Hello
a.a.a
d.d.d.d.d

TLDR I want a gmatch pattern to return a set of characters connected by periods. Ex: b.b.b.b

please help this is kind of urgent

1 Like

You don’t understand correctly how sets [_] work, they don’t fix a specific pattern, but allow you to use several classes as one. Try checking where your pattern starts with %a%..

%a%.[%a%.]*

3 Likes

Ohhhhhhhhhhhhhhhhhhhhhhhhhhh, thank you very much, absolute legend.