Posted on 2011-02-11
I'm not terribly good with Regex, but I'm trying to use them to strip out some text from a long string. Here is an example string.
" 0108 COL-GDI-STAP 1206 INDIO 2212 THEDALS-BEND 5030 HARLINGEN "
What I really want is 4 matches that would give me "0108 COL-GDI-STAP" in one match, "1206 INDIO" in the next, and so on.
I've got the string expression to get the first three, but I can't figure out the code to get the last set! Here is the code for the first 3--
What expression would I use to get the last set? Is there a better way to grab all 4 using one statement? Thanks!