![]() This does not symbolize an error, but is done only in order to focus your attention on this extremely important information. As additional localizations of the interface are added, it is planned to support regular expressions for other writings.īy the way, do not be afraid that the regular expression is always red. Generation of regular expressions is available both in Latin and Cyrillic (separately and together). You can quite simply create a regular expression not only for a word, but also for a phrase and even a sentence. It is possible to create a regex with groups / subgroups, define optional parts (not required), specify specific characters (the rest will have a type determined), specify the type - "any symbol" and block certain characters in a specific part of the regex. Here I would like to stop a little and tell you more.Īt first, I wanted to create a tool that would not restrict users in creating polysyllabic regular expressions and at the same time make the interface as simple as possible. Next comes the thing for which it was all started - the generated Regular Expression: Over time, the list of examples will expand: You can then modify the example you have chosen as you wish. Also, you can simply switch between correct and incorrect examples. I recommend choosing the example closest to your task. The first thing that meets you is an "Examples" card and this is done specifically for easier understanding of how it works. I wanted to make it as simple as possible (for a wider range of people), so that not only programmers, but also people who are far from programming (moderators / administrators) could make their own validation rules.Īs expected, it was difficult for new users to figure out what to do, so I added hidden tooltips. On the complex, as usual, there was neither money nor time.īut this problem hooked me very much, and now, finally, I am glad to present to you the fruits of my labor. Nothing suitable was found and I had to proceed with a very primitive implementation. Like any good developer, I naturally started by looking for ready-made solutions. The rules had to be changed frequently and very quickly. Technical support staff needed to set their own validation rules for certain fields for different users. In one project, a rather interesting and complex request came from internal users. Now, I am happy to introduce the 3rd answer - UiRegex To ask someone more experienced to do it for you.To learn the documentation on regular expressions and create a regular expression by yourself. ![]() Most of us, when faced with this problem for the first time, begin to type in search engines something like: “auto regex generator” and, to our great regret, realize that Google is broken all search results are services for checking the correctness of an already built regular expression (or I googled badly).īut how to write this most regular expression?īasically, there were 2 answers to this question: ![]() In almost 99% of cases, we absolutely do not like to write them, considering it a side job that is not related to programming. Almost all developers sooner or later come across regular expressions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |