View Single Post
Old 01-04-2010, 06:48 PM   #24
Sabardeyn
Guru
Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.
 
Sabardeyn's Avatar
 
Posts: 644
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
Ok, I'm not where I can get to my regex software, but as near as I can tell from the expression...

It seems that you've been greedy (the + operator) without giving back at the end. So effectively you use the entire filename for the first expression test (Author), but it fails because it is not supposed to have a tilde in it.

You need to make use of the "give back" operator to release portions of the filename to limit it to just the Author portion. Unfortunately I cannot remember the operator at the moment, nor the "phrasing" for doing so.
Sabardeyn is offline