I have a .txt
file that contains all the info of a particular item on each line, in this format:
1 +'item 1'+ [0, 0]
2 +'item 2'+ [0, 0]
The first number is the item id, the string between the +
signs is the item name, and the list at the end is the stats of the item. I need to use regex to get the name between the +
symbols, but all of the answers I find aren't exactly what I'm looking for, and I don't understand regex very well at all. What pattern should I use to find the name?
Similar questions/answers, that don't really answer my question: one, two