RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Newzbin File Name Prefix Stripper
Expression
(?<=\d{7}_).+((?=\x5B\d\x5D)|.{3})
Description
Although written specifically to strip Newzbin version 2 and 3 prefixes and the [1] IE adds in Newsbin from NZB file names, this expression can be modified to search for any prefix/suffix combination. It also provides an example of using of grouping constructs to remove matching text.
Matches
msgid_0000000_Any_Text[1] | 0000000_Any_Text
Non-Matches
msgid 0000000 | messageid | 000000
Author Rating: Not yet rated. Jim Fritz
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials