In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you the content about js regular expression matching between two specific characters. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
1. Js intercepts the content between two strings:
Var str = "aaabbbcccdddeeefff"; str = str.match (/ aaa (\ S*) fff/) [1]; alert (str); / / result bbbcccdddeee
2. Js intercepts the content in front of a string:
Var str = "aaabbbcccdddeeefff"; tr = str.match (/ (\ S*) fff/) [1]; alert (str); / / result aaabbbcccddd
3. Js intercepts the content after a certain string:
Var str = "aaabbbcccdddeeefff"; str = str.match (/ aaa (\ S*) /) [1]; alert (str); / / result bbbcccdddeeefff above is the js regular expression that Xiaobian shared matches the content between two specific characters. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
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: 0
*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.