2005-05-15, 17:42
thanks, i'll have a go at this.
Quote:<regexp>[ _\.-]*(svcd)?[ _\.-]*([\(\[]?[0-9]{4,4}[\)\]]?[ _\.-]*)?(dvdrip)?[ _\.-]*(xvid)?[ _\.-]+(cd)?[ _\.-]*[0-9]+[ _\.-]*(of[ _\.-]*[0-9]+[ _\.-]*)?(bh[ _\.-]*)?(rix[ _\.-]*)?</regexp>but at this point, i would have to agree with the other devs here - you would be better off trying to do some cleanup of file names before putting them to the xbmc challenge - when you start to logically look at these complex regex expressions, you start to get an idea of where the tradeoff between complexity and extra time spent cleaning up file names lies.
Quote:<regexp>[ ]\([0-9]+[ ]of[ ][0-9]+\)</regexp>
Quote:<regexp>\.svcd\.[0-9]{4,4}\.dvdrip\.cd\.[0-9]+\.of\.[0-9]+\.murgha</regexp>and here's a single combined version of those 3:
<regexp>\.svcd\.[0-9]{4,4}\.cd\.[0-9]+\.of\.[0-9]+\.murgha</regexp>
<regexp>\.[0-9]{4,4}\.dvdrip\.svcd\.cd\.[0-9]+\.of\.[0-9]+\.murghi</regexp>
Quote:<regexp>(\.(svcd)?([0-9]{4,4})?(dvdrip)?)*\.cd\.[0-9]+\.of\.[0-9]+\.(murgha)?(murghi)?</regexp>
Quote:<regexp>[ ]\(([0-9]+)[ ]of[ ]([0-9]+)\)</regexp>