Skip to content

Instantly share code, notes, and snippets.

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