Skip to content

Latest commit

 

History

History

regexp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Regular Expression in Go

Regular expression in Go.

Notes

  • It's a best practice to use backtick for regexp pattern. String enclosed by backticks are more "literal," which makes it easier to write as certain characters like backlash isn't interpreted as an escape.

    patternInDQuote   := "[a-zA-Z0-9\\]+" // Double quote
    patternInBacktick := `[a-zA-Z0-9\]+`  // Backtick

Setup

  1. Run the program.

    $ make run

Reference