The last time I used a regular expression was 2 years ago and even then it wasn't something I considered to be the simplest of things!
Could anybody tell me how I would go about splitting this text into three groups (qty, name, price)?
1 Corn Dog 5.00
3 Corn Dog 15.00
@ 5.00
2 Diet Cola 4.00
@ 2.00
I've attempted it myself following http://www.regular-expressions.info/reference.html but the symbols are getting overwhelming! I'm tempted to start doing some funky string manipulation as a plan B.
I'm using Objective-C so I'll probably use NSPredicate to execute the expression.