how to in kotlin and regex accept enter

Viewed 23

I have a problem, I use this regex code

"(!)(.*?)(!)

so that in the text, if it has a character at the beginning and end, the problem is that if the text that is inside, if it has an enter, it will not accept it. How can I tell it to accept the enter in the regex?

0 Answers
Related