---
title: "Discussion on \"Go Cheatsheet - RegExp\" | Hashnode"
description: "Discussion on \"Go Cheatsheet - RegExp\". Regular Expression\nWe can use go's regexp module for regular expression match.\nQuick Match\nmatched, _ := regexp.MatchString(\"a[a-z]+e\", \"apple\")\nfmt.Println(\"Matched:\", matched) // true\n\nCompile then check match\nr := regexp.MustCompile(\"a([a-z]+)e\")\n..."
url: "https://hashnode.com/posts/go-cheatsheet-regexp/6081c8b8ff5fc65284a76b08"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Go Cheatsheet - RegExp](https://hn.0xbf.me/go-cheatsheet-regexp?utm_source=hashnode&utm_medium=feed)

Regular Expression We can use go's regexp module for regular expression match. Quick Match matched, \_ := regexp.MatchString("a\[a-z\]+e", "apple") fmt.Println("Matched:", matched) // true Compile then check match r := regexp.MustCompile("a(\[a-z\]+)e") ...

Apr 22, 2021 · 1 min read · hn.0xbf.me  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[0xBF](https://hashnode.com/@0xbf)

@0xbf

  
[View profile](https://hashnode.com/@0xbf)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
