Current location - Quotes Website - Team slogan - regular expression
regular expression
The application of 1. regular expression in various environments is different.

If the application environment can be given, it may be helpful to get a satisfactory answer.

2.(\d+\。 \d+\。 \d+\。 \d+:\d+)

This expression matches 61.155.220.243: 80.

Note that if you want to match the form of IP+ port, then this is not a good expression, because it is not only lengthy, but also matches the following expression, which is illegal.

6666666666666 1. 15555555555.220000000000.2433333333:80

3. To match 61.180.154.211.80, just turn: into a space in the above expression.

4.(\d+\。 \d+\。 \d+\。 \ d+)& lt; /TD & gt; . *? & lttd。 *? & gt([0-9]{2,6})

\d+\。 \d+\。 \d+\。 \d+

Matches four comma-separated sequences of numbers.

. *? & lt

Matches a line-by-line newline sum consisting of characters other than: by except.

[0-9]{2,6}

A decimal number that matches 2-6 digits, and the number also contains leading zeros.

If two tabs are merged (1: \ 2), the tabs may not be closed normally.