Skip to content
Discussion options

You must be logged in to vote

Hi @ondohotola,

You're not doing anything wrong! This is actually expected behavior in Lua/Luau pattern matching.

In Lua/Luau, string.find uses pattern matching by default, where certain characters have special meanings:

  • ( ) - Captures/groups
  • . - Any character
  • % - Escape character
  • [ ] - Character classes
  • *, +, -, ? - Quantifiers

When you search for 'DNE (2)', the parentheses () are interpreted as pattern metacharacters (empty capture groups), not literal parentheses. This changes how the pattern is evaluated, causing the match to fail.

If you need to use these reserved characters in string.find, you need to escape them with a "%" sign. Thus:

qsv luau map newpoints "if string.find(Name,'…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ondohotola
Comment options

@jqnatividad
Comment options

Answer selected by jqnatividad
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3089 on November 07, 2025 10:15.