Trying to remember what this string pattern is

Hello! I’ve been recently studying string patterns but the Roblox Wiki is a little lacking; my friend wanted me to create a script that searches for a specific string pattern. However, I’m a little ill right now (not Covid, thank God) and I’m having trouble remembering what it exactly means.

I’ve tried looking through the wiki several times to try and re-piece together what this means…but I can’t figure it out for the life of me.

"^[^%.]+\n"

It’s a regular expression. The best source for learning Regular Expressions that I’ve found is this. It will need to be adapted a little since Lua has some differences, but you will at least learn the basics of how to use it.

The string you shared will match any single line of a text that does not contain a . period.

Thank you for such a quick response! And I appreciate the source for learning :slight_smile:

1 Like