Regex To Upper And Lower Case Link to heading

  • Lower: \L
  • Upper: \U

The example below matches two groups, and replaces them for

  • The second group upper cased: \U\2
  • Underscore: _
  • The first group lower cased: \L\1

Match:

: id: (.*)-([a-z0-9]{4})

Replace

: id: \U\2_\L\1