I am trying to extract certain values from a long text file (actually postscript). It is mostly unstructured so I need a flexible parsing method. I think I'm looking for the RegEx counterpart to a SQL Like valuestartswith%valueendswith (or valuestartswith*valueendswith). That is, I know what the match should start with and I know what it ends with but I don't know what's in between.
I put some sample data below. The initial goal is just to retrieve the text between the "/Type" and "end" for each block of data. Alternatively, it would be fine to strip out the other text. It would be even better if I could extract an array containing Type,Q,D,A for each block.
My preferred language would be .Net but I'm not closed to other options.
Here is some sample data
/more random text
/still more random text
/more other stuff
/A (Asst. Marketing VP)