示例<html> <head> <title>javascript regular expression</title> </head> <body> <script> var mystr = "welcome to our website! welcome"; var reg = /me$/g; var match = mystr.match(reg); document.write(match); </script> </body></html>
以上就是匹配以字母"p"结尾的任意字符串的详细内容。
