On the positive I was a smattering, I am the idea of the regular is, can be used on the line!
For all the characters, my first understanding was. *
Then Google a bit, just know. * Connecting together means any number of characters that do not contain a newline.
So you can use [\s\s]* it means any whitespace character and non-white-space character. Similarly, you can use [\d\d]*], [\w\w]*] to express. D and D,w and W,s and S are all antisense and add up to all the characters.
Note: The n written in the text is not automatically treated as a line break, testing $_= "ASDFNASDF"; s/./-/;p rint;
Add
Matching regular expressions for Chinese characters: [\U4E00-\U9FA5]
Match Double-byte characters (including Chinese characters): [^\x00-\xff]
A regular expression that matches a blank row: \n[\s|] *\r
Regular expression matching HTML tags:/< (. *) >.*<\/\1>|< (. *) \/>/
Matching a regular expression with a trailing space: (^\s*) | (\s*$)