- Регистрация
- 04.11.2010
- Сообщения
- 2 382
- Благодарностей
- 917
- Баллы
- 113
We collect the people's list of regulars (regex) for all occasions, I'll start first. Who has their own - throw, add to the first post indicating the author. Regulars can sometimes work incorrectly, if that write off in this thread - we will find a solution.
[TBODY]
[/TBODY]
Origin: Link
Author: CSS
Translate by: LightWood
| List of regular expressions and typical usage contexts |
|---|
| Search for a number greater than 0
Код:
In this example, the visible elements are searched for only, the invisible elements (having a width of 0px) are ignored, but sometimes there are misfires - when a site overlays elements (it is found in Google for example). Thanks: CSS, ZennoScript |
| Parsing the text for sentences, seems author is ZennoScript, I have slightly modified
Код:
result: Thanks: ZennoScript |
| Search for a word starting with a specific text (Thank ZennoScript for the modification)
Код:
Thanks: CSS, ZennoScript |
| Searches for a number in the range 400-699:
Код:
Shared: CSS |
| Virtual columns with separator ";"
Код:
result: the "column" you need by the match number: Посмотреть вложение 8857 use case: we work with the list, we disassemble by the pieces of the column as in the table Shares: CSS |
| Get the file name from the windows path:
Код:
result: ZennoPoster.exe Shared: CSS |
| Search for strings NOT containing the specified (sub) string:
Код:
result: Shared: CSS |
| Take all the lines of more than 18 characters
Код:
|
| Get all lines less than 18 characters
Код:
|
| Search all HTML tags
Код:
Thanks: Trader1985 |
| Find all empty lines in the text
Код:
Thanks: Trader1985 |
| Search from three or more blank lines
Код:
Thanks: Trader1985 |
| Email:
Код:
|
| IP
Код:
|
| URL
Код:
|
IP ORT (for example for parsing a proxy)
Код:
|
Origin: Link
Author: CSS
Translate by: LightWood
ORT (for example for parsing a proxy)