Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(^\.)?((?<=\.?)\/src)|(src\/)
/
mg

Description

In my nuxt automation I want to remove src from path because nuxt don't have src dir.

hence I want to remove src prefix from all path

Submitted by JD Solanki - 2 years ago (Last modified 2 years ago)