i have a text file that has a pattern of something like ID#, Code, Name, Time, Room#. but once in a while not all of these variables come up in a line. so something like:
please ignore underscores as spaces
12345ABCDaiba, Yu0710-1000145
53154BEC______________TBA____315
__TCRKerr, Hum0200-0400_
21678_____Mama, Papa_____________SAT1
please ignore underscores as spaces
something like that. im sure u get the idea. what i'm doing is extracting the variables using regex and putting them in an array, and later in a database.
the question is, is it possible to have just one expression to accommodate for all these possibilities? if not, what is the minimum number of regex i can have?
THANKS