.NET Regex Unrecognized grouping construct


I am trying to translate a regex from Python to C#, but i am having some problems as i keep getting the error Unrecognized grouping construct.

^(?:\[(?P<release_group>.+?)\][ ._-]*) (?P<series_name>.+?)[ ._-]+ (?P<ep_ab_num>\d{1,3}) (-(?P<extra_ab_ep_num>\d{1,3}))?[ ._-]+? (?:v(?P<version>[0-9]))? (?:[\w\.]*) (?:(?:(?:[\[\(])(?P<extra_info>\d{3,4}[xp]?\d{0,4}[\.\w\s-]*)(?:[\]\)]))|(?:\d{3,4}[xp])) (?:[ ._]?\[(?P<crc>\w+)\])? .*?

What is giving me the error Unrecognized grouping construct in this regex?


(?P<groupname>...) becomes (?<groupname>...) in .NET regexes. Just remove the P. Same semantics.


  • FOS UserBundle - Override the FormFactory
  • LINQ to Entities does not recognize the method
  • Ember: how to translate a placeholder using i18n lib?
  • How to write a bison grammer for WDI?
  • Adapting diverging stacked bar chart to use general update pattern
  • How to prevent Excel from handling strings containing a colon as formulas
  • DJ3S - Graticule removed when rotation is done in orthographic projection
  • Java - Change the color of some squares created with Graphics2D
  • Chrome PNaCl app inline installation
  • How to add id attribute to Zend Framework form?
  • Pandas split array based on condition
  • How to group a list of lists by date using Linq?
  • ASP.NET MVC Hierarchy Url Routing
  • Why __weak object will be added to autorelease pool?
  • Center align a pie chart on svg
  • How to Optimize mach_msg_trap
  • Doing ARP and Inverse ARP on Linux 2.6.21 (glibc 2.3.5)
  • How to parse Java properties which contains variables?
  • What does the “?” mean in the following statement
  • d3.js: why is d3.geo.path() giving NaN?
  • In Java, how can I construct a File from a resource?
  • Request response issues in biztalk
  • Primefaces ManyCheckbox inside ui:repeat calls setter method only for last loop
  • uml Composition relationships to RDF and OWL
  • Linq Merge lists
  • During installation of Django, why do I keep getting ImportError: No module named django?
  • where do I find the xml.dom python package for the python-2.6.0-8.9.28 and I have a suse/x86_64 vers
  • Python pickle not one-to-one: different pickles give same object
  • D3 get axis values on zoom event
  • Extracting HTML between tags
  • MongoDB in PHP using aggregate to group by _id is null not working
  • Regex thinks I'm nesting, but I'm not
  • How to pass list parameters for each object using Spring MVC?
  • Busy indicator not showing up in wpf window [duplicate]
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?
  • java string with new operator and a literal