Repeating Capture Groups Regex -


i have large chunk of class data need run regular expression on , data from. problem need repeating capturing group in order acomplish that.

womn st  157a      queerhistory making     ccode typ sec unt  instructor         time              place     max   enr req rstr status      32680 lec   4    shah, p.           tuth 11:00-12:20p iab 131    35    37 60       full  womn st  171       sex/race & conquest     ccode typ sec unt  instructor         time              place     max   enr req rstr status      32710 lec   4    o'toole, r.        tuth  2:00- 3:20p dbh 1300   52 13/45 24       open          ~ same 25610 (glblclt 103b, lec a);  26350 (history 169, lec a);  ,       ~    60320 (anthro 139, lec b).     32711 dis 1   0    monson, a.         w     9:00- 9:50  hh 105     25  5/23 8        open                           o'toole, r.                                                                     ~ same 25612 (glblclt 103b, dis 1);  26351 (history 169, dis 1);  ,       ~    60321 (anthro 139, dis 1). 

the result need return 2 matches

  1. match
    group1:womn st 157a
    group2:queerhistory making
    group3:32680
    group4:lec
    group5:a
    group6:shah, p.
    group7:tuth 11:00-12:20p
    group8:iab 13
  2. match group1:womn st 171
    group2:sex/race & conquest
    group3:32710
    group4:lec
    group5:a
    group6:o'toole, r.
    group7:tuth 2:00- 3:20p
    group8:dbh 1300
    group9:25610
    group10:26350
    group11:60320
    group12:32711
    group13:dis
    group14:1
    group15:monson, a.
    group16: w 9:00- 9:50
    group17:hh 105
    group18:25612
    group19:26351
    group20:60321


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -