JavaScript 字符串 string match 方法(函数) JavaScript 字符串localeCompare方法(函数) JavaScript 字符串 string replace函数 JavaScript 字符串 string match 方法(函数) <html> <head> <title>JavaScript String match() Method</title> </head> <body> <script type = "text/javascript"> var str = "For more information, see Chapter 3.4.5.1"; var re = /(chapter \d+(\.\d)*)/i; var found = str.match( re ); document.write(found ); </script> </body> </html> JavaScript 字符串localeCompare方法(函数) JavaScript 字符串 string replace函数