Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Golang

`
(\w{1}\:{1}\/{2})(\w+\/{1})+(\w+\.{1}\w+){1}
`

Description

Find all string matches with dir, one or more subdir, file name with optional extension.

Common example with all capturing groups included:

C://ProgramFiles/MyDir1/myDir2/file.ext

Submitted by anonymous - 4 years ago