Regular Expressions 101

Community Patterns

1...45678...294

Match path that starts with

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 - 10 months ago (Last modified 9 months ago)