return{Name="\114\101\112\108\097\099\101",Aliases={"\103\115\117\098","\047\047"},Description="\082\101\112\108\097\099\101\115 \116\101\120\116 \065 \119\105\116\104 \116\101\120\116 \066",Group="\068\101\102\097\117\108\116\085\116\105\108",AutoExec={"\097\108\105\097\115 \"\109\097\112\124\077\097\112\115 \097 \067\083\086 \105\110\116\111 \097\110\111\116\104\101\114 \067\083\086\" \114\101\112\108\097\099\101 \036\049\123\115\116\114\105\110\103\124\067\083\086\125 \040\091\094\044\093\043\041 \"\036\050\123\115\116\114\105\110\103\124\109\097\112\112\101\100 \118\097\108\117\101\124\085\115\101 \037\049 \116\111 \105\110\115\101\114\116 \116\104\101 \101\108\101\109\101\110\116\125\"","\097\108\105\097\115 \"\106\111\105\110\124\074\111\105\110\115 \097 \067\083\086 \119\105\116\104 \097 \115\112\101\099\105\102\105\101\100 \100\101\108\105\109\105\116\101\114\" \114\101\112\108\097\099\101 \036\049\123\115\116\114\105\110\103\124\067\083\086\125 \044 \036\050\123\115\116\114\105\110\103\124\068\101\108\105\109\105\116\101\114\125"};Args={{Type="\115\116\114\105\110\103",Name="\072\097\121\115\116\097\099\107",Description="\084\104\101 \115\111\117\114\099\101 \115\116\114\105\110\103 \117\112\111\110 \119\104\105\099\104 \116\111 \112\101\114\102\111\114\109 \114\101\112\108\097\099\101\109\101\110\116\046"};{Type="\115\116\114\105\110\103",Name="\078\101\101\100\108\101",Description="\084\104\101 \115\116\114\105\110\103 \112\097\116\116\101\114\110 \115\101\097\114\099\104 \102\111\114\046"},{Type="\115\116\114\105\110\103";Name="\082\101\112\108\097\099\101\109\101\110\116",Description="\084\104\101 \115\116\114\105\110\103 \116\111 \114\101\112\108\097\099\101 \109\097\116\099\104\101\115 \040\037\049 \116\111 \105\110\115\101\114\116 \109\097\116\099\104\101\115\041\046";Default=""}},ClientRun=function(z,s,B,o)return s:gsub(B,o)end}
return {
	Name = "replace",
	Aliases = { "gsub", "//" },
	Description = "Replaces text A with text B",
	Group = "DefaultUtil",
	AutoExec = {
		'alias "map|Maps a CSV into another CSV" replace $1{string|CSV} ([^,]+) "$2{string|mapped value|Use %1 to insert the element}"',
		'alias "join|Joins a CSV with a specified delimiter" replace $1{string|CSV} , $2{string|Delimiter}',
	},
	Args = {
		{
			Type = "string",
			Name = "Haystack",
			Description = "The source string upon which to perform replacement.",
		},
		{
			Type = "string",
			Name = "Needle",
			Description = "The string pattern search for.",
		},
		{
			Type = "string",
			Name = "Replacement",
			Description = "The string to replace matches (%1 to insert matches).",
			Default = "",
		},
	},

	ClientRun = function(_, haystack, needle, replacement)
		return haystack:gsub(needle, replacement)
	end,
}
