-2

I have the below code that contains multiple lines.
Code:

This is India

I am from Mumbai

Is there a way in which I can write regular expression above the lines.
I tried the way below, but it does not match:

\s*\w*\W*\s*\n\s*\w*\W*

Can anyone help me in writing a regex for this?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

1 Answers1

0

You can use this regex :

\r\n
karthik selvaraj
  • 426
  • 5
  • 12