If you meant to type "xgsub" but it appears to be a misspelling, it can be corrected to "gsub". Gsub is a function in programming languages such as Ruby that stands for "global substitution". It replaces all occurrences of a given pattern with another value in a given string.