-1

I need to add new line at the begin of my regular expression but i don't know how to do it. This is my regular expression

(?:"name":")(.*?)(?:")|(?:"text":")(.*?)(?:")

Mohamed
  • 49
  • 1
  • 1
  • 7

1 Answers1

0

use the following regex

s/(\d{5})/\r\n\1/gs

or

s/(?<=\D)(\d{5})(?=\D|$)/\n\1/g
azizsagi
  • 268
  • 3
  • 12