Vexlev00
(Vex)
April 27, 2025, 10:38pm
#1
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
Vexlev00
(Vex)
April 28, 2025, 12:12am
#3
please help this is kind of urgent
1 Like
yo9sa
(yosa)
April 28, 2025, 12:20am
#4
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
Vexlev00
(Vex)
April 28, 2025, 12:33am
#5
Ohhhhhhhhhhhhhhhhhhhhhhhhhhh, thank you very much, absolute legend.