Top "Gsub" questions

Ruby, Lua, R and Awk methods for performing a global pattern substitution.

Extract part of string before the first semicolon

I have a column containing values of 3 strings separated by semicolons. I need to just extract the part of the …

r string gsub
Using named capture groups inside Ruby gsub blocks (regex)

I'm trying to use a named capture group inside a block in Ruby. $1 still works, but I'd like to reference …

ruby regex gsub