Regular Expression Logic

Expressions of expressions seem complicated, they always drive me crazy trying to create it. And I end up asking for help. But as soon as I get the result, it looks really coool. Guru, is there any way to do this in order to break it.

+3
source share
10 answers

Yuo can start with the tutorials on Regular-Expressions.info , which are a good starting point. The link is also invaluable, as are explanations of how the regex engine works behind the scenes.

In fact, the basics aren't that hard to understand, and once you get them, it's not too hard. However, reading complex regular expressions is more like a secret art; it can quickly become quite bulky.

+3
source

Not sure what you mean by the word “up,” but here are a few regex guides:

The absolute minimum every programmer needs to know about regular expressions

Extreme regex foo: what you need to know to become a regex pro

Regulator is a good tool to help you write regular expressions.

+3
source

-. . http://www.regexpal.com/ . , , - , .

+2

, -. , , . , , - (), , .

: , , , , . , , (, , ).

, , , , , , .

, . , - !

+1

, , Mark Dominus. , .

+1

RegEx. , , , RegEx - RegEx .

, HTML RegEx. SO, , RegEx - , !

, RegEx , . () .

RegEx - . , , RegEx - "" , . , , , "" . . , :

  • , ( XML, HTML )
  • "" "", "" - . , - , . - !

, -, RegEx. , RegEx !

RegEx , "" RegEx, , ().

+1

, , , phpro.org .

0

reg ex regexlib

0

Expresso. 30 , . 30- .

RegexBuddy - , . .

I suggest you go through the tutorial and other useful sites mentioned so far. Start with simple patterns and understand them, then go from there. It's complicated at first, and you need to figure out what to look for to create a template that matches it.

@gbacon mentioned the most popular book, so I won’t mention it again. A recent one that has good reviews is the Regular Expressions Cookbook .

0
source

Source: https://habr.com/ru/post/1730859/


All Articles