• Reading from string only past a specific point.
    4 replies, posted
I need to read from strings past a specific key point. For example:[CODE]"RandomPieceOfAString_mark_ANumber" "AnotherRandomPieceOfTheString_mark_ABool" "YetAnotherStringPiece_mark_AString"[/CODE]How do I read everything past the "_mark_" no matter what the string starts with?
string.sub(str , string.find(str , "_mark_") , string.len(str))
[code]segment = str:match( "_mark_(.+)$" )[/code]
Thanks, Ill try both ways.
The pattern's better.
Sorry, you need to Log In to post a reply to this thread.