javascript 正则表达式

Matchastandalonetag

/^<(\w+)\s*\/?>(?:<\/\1>)?$/

trimLeft=/^\s+/,

trimRight=/\s+$/,

相关推荐