Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / May 2007

Tip: Looking for answers? Try searching our database.

C# and regex continued

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nightcrawler - 21 May 2007 18:51 GMT
Kevin Spencer was kind enough to provide me with the following regular
expression: (?<artist>\w+)\s+-\s+(?<title>\w+)(?:\s+[\(\[](?<remix>\w+)
[)\]])?

This works great when I try to group the following mp3 naming
conventions:

Artist - Title [Remix]
Artist - Title (Remix)
Artist - Title

How can I modify the above regular expression to to include characters
like hyphens, underscores, and spaces. Here is a sample list of
titles.

JP Conley - Karma Moods [Soul Mix]
Soul Beats - Wherever You Go... [Love Mix]
Thievery Corporation - Doors Of Perception
Thievery Corporation - Holographic Universe
Ananda Project - Universal Love [Jay-J's Shifted Up Mix]
Collective Sound Members - Switch
Cool Touch - Gravity
Dennis Ferrer - Church Lady Part 2 [Bryan Cox Remix]
Air - Cherry Blossom Girl (Because You Blossom) [DJ AM Mix]

Any help is appreciated.

Thanks
Jesse Houwing - 21 May 2007 19:33 GMT
* Nightcrawler wrote, On 21-5-2007 19:51:
> Kevin Spencer was kind enough to provide me with the following regular
> expression: (?<artist>\w+)\s+-\s+(?<title>\w+)(?:\s+[\(\[](?<remix>\w+)
[quoted text clipped - 24 lines]
>
> Thanks

See my new reply to your original post. They must have crossed :)

Jesse

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.