local example = "name | userid"
for i in string.gmatch(example, " | ") do
print(i)
end
I'm trying to split name, and userid into separate strings, but the script above cuts out everything BUT the " | " when I want it to split on that, so how can I basically invert this?

2 comments
That wasn't really what I asked for, but I was able to figure it out using your "format" or whatever you'd call the "[^,^]+" thing, thanks
That string is called a "pattern": http://wiki.roblox.com/index.php?title=String_pattern