Skip to content

Instantly share code, notes, and snippets.

@tvpsh2020-zz
tvpsh2020-zz / main.go
Last active November 21, 2018 03:37
Golang GSM 03.38 7-bit alphabet regular expressions example. See definition: https://en.wikipedia.org/wiki/GSM_03.38
package main
import (
"fmt"
"regexp"
)
func main() {
// GSM 3.38 7-bit string
const GSM0338Regex = `[^A-Za-z0-9 \\r\\n@£$¥èéùìòÇØøÅåΔ_ΦΓΛ¤ΩΠΨΣΘΞÆæßÉ!\"#$%&amp;'()*+,./:;&lt;=&gt;?¡ÄÖÑܧ¿äöñüà^{}\[\~\|\]\<\>\-\\€]*`