I'm creating an inventory system and holding items with their id and then their amount, separated by the character "x". I'm however not that good at string patterns, so I'm not sure how I would be able to increase the quantity through changing that part of the string. Example:
"14x2" -- 14 is the item's ID and 2 is the quantity
How do I use string patterns to get the 2 so I can change it to for example a 3 if another of the same item is collected? Thanks

2 comments
Good question, lots of information, explained well. A+.
You'd use %d to get the numbers. https://developer.roblox.com/articles/string-patterns-reference