regex - Regular expression name of series grouped in 3 groups -


i'm starting learning regular expression , stuck 3 days on problem. need regular expression group name of series, season number of episode , else. came this, not result needed.

(.*)([ss]?[0-9]{1,2}?[ee]?[0-9]{1,2}?)(.*) 

code should work on these

timeless.s01e05.hdtv.x264-killers[ettv] the.big.bang.theory.1007.hdtv-lol dcs.legends.of.tomorrow.107.hdtv[ettv] 

3 days spent. finaly figured out. expression works tv series startin number or if movie title has year in it.

([0-9]{1,4}?.*?|.*[0-9]{4}.?|.*?)([ss]?[0-9].+?[ee]?[0-9]+?)([^0-9].+$) 

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -