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
R: How to shorten data frame values to first character

I would like to shorten the values of one column of my data.frame. Right now, each value consists of …

r string character-encoding gsub strsplit