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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 1

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