Regular Expressions 101

find first '-'

Open Workspace
  • PCRE2 (PHP)
  • Match
1

Regular Expression

/
(^.*?)-
/
gm

Description

find first '-' for replace other

Submitted by Anonymous