in reply to Simple Regex Question
You are splitting on a single space, which messes up if you have multiple spaces between your "fields" (u: this is the incorrect bit). You might use /\s+/ as your split delimiter instead.
A regex to get the first set of non-numerics out of your 3rd field could be /([a-z]+)/ or /(\D+)/. Avoid the use of .* as you're doing, since it involves a bit of back-tracking and is generally less efficient than explicitely mapping out what you do want.
|
|---|