menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
String Question
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
String Question
graveyardposse
Join Date: 2008-10-23
Post Count: 3027
#214252677
Thursday, April 13, 2017 6:30 PM GMT
Could someone please explain to me what the brackets do again? I read the article but I just want to be 100% sure. for example: the pattern "%s%a+%s%w+" compared to "[%s%a+%s%w+]" compared to "[%s,%a+,%s,%w+]"
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Unsubtleties
Join Date: 2016-11-28
Post Count: 9203
#214252759
Thursday, April 13, 2017 6:32 PM GMT
You use brackets for a set of identifiers. `[%a%d]` is matching either a letter or a digit, but of course it's unnecessary because %w exists.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right