Notepad ++ regex replace named groups

I am trying to replace the author Full name with article title I have a list of articles similar to this:

  1. Albershein P., Nevis DJ Method for the analysis of sugars in polysaccharides of plant cell walls using gas-liquid chromatography // J. The study of carbohydrates. - 1967. - Vol. 5, No. 3. - R. 340-345.

And I have a regex for him

(?'n1'^\d{3}\. )(?'n2'(?:(?:[A-Z-][-a-zć- ]+)?([A-Z-][-a-zć-]+\xA0[A-Z-]\.(?:\xA0[A-Z-]\.){0,2}\,?)(?: \[et al\])? ?)+)(?'n3' [^\/]+[\/]{2}) 

but replace as

 \k{n1} 

or

 \k'n1' 

does not work

try this in perl but get the same result

+6
source share
1 answer

Try using regex (?<groupname>something to match)

And in return: $+{groupname}

+8
source

All Articles