Does the s/ here mean substitute?
What is the /g in this context?
Is this the regular expression flag for global search?
Sorry, not a programmer just a dumb tradie.
What is the /g in this context?
Is this the regular expression flag for global search?
Sorry, not a programmer just a dumb tradie.
s/regular expression/replacement/flags – Substitute the replacement string for the first instance of the regular expression in the pattern space. ...
g – Make the substitution for all non-overlapping matches of the regular expression, not just the first one.