This is about PLSQL.

I have to search for below pattern and replace them with a space.

```
\n\n\nnotes://MYTEST/\n\n

```

e.g source string is something like:

```
source = "My string\n\n\nnotes://MYTEST/\n\nMy string continues"

```

result of the replace should produce:

```
result = "My string My string continues"

```

I would like to know how to get this done.

I have tried `'[^\n]notes://MYTEST/'`, but it doesn't work it seems.

I would like to see an answer with a little bit of explanation so that I can learn as well :)