2014-07-01, 18:04
I was looking over the wiki trying to figure out how to write my own regex for tvshowmatching, but I am having trouble understanding the examples.
Here is the first example given from the wiki:
[Ss]([0-9]+)[][ ._-]*[Ee]([0-9]+)([^\\/]*)$
why is there and empty bracket []? I feel like it does nothing.
what does this part do at the end ([^\\/]*)? I feel like it just matches the rest of the string so long as there are no forward or back slashes.
Here is the first example given from the wiki:
[Ss]([0-9]+)[][ ._-]*[Ee]([0-9]+)([^\\/]*)$
why is there and empty bracket []? I feel like it does nothing.
what does this part do at the end ([^\\/]*)? I feel like it just matches the rest of the string so long as there are no forward or back slashes.