Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the anchor points of C#

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "what are the positioning points of C#". In the daily operation, I believe that many people have doubts about the positioning points of C#. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "what are the positioning points of C#?" Next, please follow the editor to study!

Anchor point

Anchor points or atomic zero-width assertions make the match successful or failed, depending on the current position in the string, but they do not cause the engine to advance or use characters in the string.

The following table lists the anchor points:

Assertion description pattern matching ^ matching must start at the beginning of a string or line. The "567" $match in ^\ d {3} "567-777 -" must appear at the end of the string or before\ n at the end of the line or string. The "- 2012"\ A match in "8-12-2012" must appear at the beginning of the string. The "Code"\ Z match in\ A\ w {4} "Code-007-" must appear at the end of the string or before\ n at the end of the string. The "- 007"\ z match in "Bond-901-007" must appear at the end of the string. The "- 333"\ G match in -\ d {3}\ z "- 901-333" must appear at the end of the previous match. The words "(1)", "(3)" and "(5)"\ b in "(1) (3) (5) [7] (9)" match a word boundary, that is, the position between a word and a space. Er\ b matches "er" in "never" but does not match "er" in "verb". \ B matches non-word boundaries. Er\ B matches "er" in "verb" but does not match "er" in "never". At this point, the study of "what are the anchor points of C#" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report