10 lines
274 B
Go
10 lines
274 B
Go
package regexper
|
||
|
||
import "regexp"
|
||
|
||
func MSymbolsRemover(inputString string) string {
|
||
re := regexp.MustCompile(`(\[М\+\]\s|\[М\]\s)`)
|
||
result := re.ReplaceAllString(inputString, "")
|
||
result = regexp.MustCompile(`^s+|s+$`).ReplaceAllString(result, "")
|
||
return result
|
||
}
|