3 lines
148 B
Scala
3 lines
148 B
Scala
import java.util.regex.Pattern.quote
|
|
def strip1(x: String, s: String = "/*", e: String = "*/") =
|
|
x.replaceAll("(?s)"+quote(s)+".*?"+quote(e), "")
|