2010-07-31, 19:21
I am trying to figure out a way to search a string for specific information. What I am trying to do is search a file path for Disc numbering.
For example:
/media/freenas/MP3 Music/Full Albums/a/ACDC/Backtracks - CD 1/
I know how to search for a match for a single instance(ie CD 1) but not different ways(CD 1, CD1, Disc 1, Disc1, etc). I know that I need to use a RegEx expression, but most of the documentation I have found on the internet is quite confusing and not always giving enough explanation.
Thanks in advance...
For example:
/media/freenas/MP3 Music/Full Albums/a/ACDC/Backtracks - CD 1/
I know how to search for a match for a single instance(ie CD 1) but not different ways(CD 1, CD1, Disc 1, Disc1, etc). I know that I need to use a RegEx expression, but most of the documentation I have found on the internet is quite confusing and not always giving enough explanation.
Thanks in advance...