Thread: Two questions
View Single Post
Old 01-18-2009, 12:30 AM   #18
darkmonk
Connoisseur
darkmonk began at the beginning.
 
Posts: 58
Karma: 12
Join Date: Jan 2009
Device: none
OK, thanks, but when I make a part optional, when is it used? Is it used when there is more data left after the other parts have been filled?

I try "(?P<author>.+) - (?P<series>.+)? - (?P<title>[^_]+)" but the series part is not bypassed when there are fewer then two dashes in the name. Consequently, the title becomes "Al Sarrantonio - Pumpkin Head", instead of what I want it to be.

Last edited by darkmonk; 01-18-2009 at 12:51 AM.
darkmonk is offline   Reply With Quote