Actions
Misc #22091
openMissing Regexp documentation on relative (negative) backreferences
Misc #22091:
Missing Regexp documentation on relative (negative) backreferences
Status:
Assigned
Assignee:
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
- Status changed from Open to Assigned
- Assignee set to burdettelamar (Burdette Lamar)
Actions