Thalassicus
Bytes and Nibblers
How do I use tagged regular expressions to match an indeterminate repetition of a substring? Like for example... I'm trying to do this:
strHelpText = string.gsub(strHelpText, "^(%[NEWLINE%])+", "")
I would expect it to match one or more [NEWLINE] at the start of a string, but it doesn't, which is confusing.
strHelpText = string.gsub(strHelpText, "^(%[NEWLINE%])+", "")
I would expect it to match one or more [NEWLINE] at the start of a string, but it doesn't, which is confusing.