I want to replace a regex based on a date string with the same one and a new line. The problem is that when I write the sintax like this:
Replace with : (\1)\n
Or like this :
Replace with: ($1)\n
It only replaces it with a new line, instead of replacing it with what it finds and a new line. My regex is this:
(?:0[1-9]|[12][0-9]|3[01])/(?:0[1-9]|1[0-2])/(?:19\d\d|20\d\d)
Can you help me? Or tell me what am I doing wrong?
edit:
This is a string example of what I need:
03/12/2010 lots of text 05/12/2009 lots of text lots of text 13/09/2008 lots of text lots of text lots of text 23/09/2007 lots of text 20/04/2010 lots of text
I need it to look like this:
03/12/2010 lots of text
05/12/2009 lots of text lots of text
13/09/2008 lots of text lots of text lots of text
23/09/2007 lots of text
20/04/2010 lots of text