Project

General

Profile

Actions

Misc #22091

open

Missing Regexp documentation on relative (negative) backreferences

Misc #22091: Missing Regexp documentation on relative (negative) backreferences

Added by cryptogopher (crypto gopher) 12 days ago. Updated 6 days ago.


Description

I found out about them elsewhere: https://idiosyncratic-ruby.com/11-regular-extremism.html#relative-back-references.

Description below is sourced from blog linked above:

Relative Back-References

Back-refs can be relatively referenced from the current position via \k<-n>:

"Ruby by"[/(R)(u)(by) \k<-1>/] #=> "Ruby by"

Updated by mame (Yusuke Endoh) 6 days ago Actions #1

  • Status changed from Open to Assigned
  • Assignee set to burdettelamar (Burdette Lamar)
Actions

Also available in: PDF Atom