Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the anchor points of C#

Shulou Source: shulou.com Published: 2022-06-01 01:52:32 10月03日 Update

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!

Tags: Characters strings anchors positioning endings clips learning words positions beginnings more boundaries help in-line practical successful and then one line that is atoms Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB macOS Shulou Technology Xiaomi Huawei