Discover Packages
github.com/cybersamx/go-recipes/regexp
command
module
Version:
v0.0.0-...-838b099
Opens a new window with list of versions in this module.
Published: Oct 3, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
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
Run the program.
$ make run
Reference
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.