I have string. The string has multiple lines in it.. I mean it contain \n.
Now I need to replace every occurrence of -- and any number of letters and \n by a space
again the pattern is
minus minus followed by any number of characters and ending by new line
this pattern needs to be replace by a single space
I am new for regular expressions and java.
Can you please point to me also which packages I need to import. I hope you provide an example. You can call the String str or something.