In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces regular expressions. How to use metacharacters, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Regular expression. Symbol metacharacter:
Dot (.) Metacharacters can match any character except carriage return (\ r) and newline character (\ n).
Grammatical structure:
Constructor mode:
New RegExp (.)
Object direct quantity method:
[JavaScript] View copy code running code in plain text
/. /
Browsers support:
IE browsers support this metacharacter.
Firefox browser supports this metacharacter.
Google browser supports this metacharacter.
Note:
In browsers above IE9 or other standard browsers, the decimal point can match any character except the carriage return (\ r) and the newline character (\ n).
In browsers below IE8, the decimal point can match any character except the newline character (\ n).
Example code:
Example 1:
Var str= "antzone
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 211
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.