python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Finding if a string start with 0 or more spaces followed by a string that might contain metacharacters
I need to find if a string start with 0 or more spaces followed by a comment string I don't know in advance, so I though of just constructing the pattern:
local pattern = "^(%s" .. comment_s...

Ludo
Votes: 0
Answers: 1