View Single Post
Old 08-28-2011, 04:23 AM   #1
txckie
Junior Member
txckie began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2011
Device: Panditigal Novel
New help with a regex

I am using this regex at the moment:
" ^(?P<author>((?!\s-\s).)+)\s-\s(?:(?:\[\s*)?(?P<series>.+)\s(?P<series_index>[\d\.]+)(?:\s*\])?\s-\s)?(?P<title>[^(]+)(?:\(.*\))? "

I now need to add publisher to my regex. My books are in this format

Author - [Series Series Index] - Title [Publisher](epub).epub

Example:
JR Ward - [Black Dagger Brotherhood 03] - Lover Awakened [Signet] (epub).epub

Any help would be appreciated.
txckie is offline   Reply With Quote