![]() ![]() Look at the method below: public override void Process(TagHelperContext context, TagHelperOutput output) If you want to create your own regex I’d recommend to use websites like Regex101, which can also help you to test it. Matches a comment starting with slash-slash (C# or Java)Īs you can see, they are not very friendly and, honestly, there is a very low number of people who know them by heart. A regex can be used for anything: Find, find/replace, or even input validation. If you are not familiar, a regular expression (or regex) is a sequence of characters that specifies a search pattern. You normally use regular expressions in your code when trying to find something. But what if you would want to invert the values of a ternary condition or change the order of parameters in multiple methods? The most basic situation is to, for example, make all public methods into protected. If you are writing any sort of code, you will eventually use the Find/Replace functionality (also known as Ctrl+H or Ctrl+Shift+H). ![]() This is one of those things you realize after long time using the tool ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |