Please consider the following examples.
The next line is **
_This line surrounded with emphasis mark_
`hey this is crazy`
**bold**
Now, I want to figure out a regex that identifies the special characters.
Basically I want to use string.replaceAll(regex,"")
so that I can replace only these special characters **,_,` from the string. Consider each line to be 1 string.
I can identify that each special character is preceded by either space or a new line, followed by the a string, followed by the special character I am trying to remove.
Also please explain the regex.