Regular match space with newline

str = the let ` 

Name: Wuxi Chemical Technology Co., Ltd. Han Wei Yan 
Tax ID: 91320206MA1WGXCCXA Address: Wuxi Huishan Wanda Commercial Plaza, 137 -2 109  
Tel: 0510-83594458 Bank:
Agricultural Bank of China branch in Wuxi Huishan 
account: 10654501040020717 

`

Regular

str.match(/[^\x00-\xff]+(:|:)+([^\x00-\xff]|\w|-)+(\s|[\r\n])*/g);
[^ \ X00- \ xff] matches characters
([^ \ X00- \ xff] | \ w | -) match alphanumeric characters - underscore _
(\ S | [\ r \ n]) matches space carriage return linefeed

Guess you like

Origin www.cnblogs.com/hzx-5/p/11960590.html