...
Expand | |||||
---|---|---|---|---|---|
| |||||
Let's imagine that there is the following text:
And the task is to disassemble it into its components. To do this, we will use the following regular expression: This is how the output looks in the Regular Expression Tester: Let's imagine that we need to take in variables the day, month and year from the second row. Here's how you can do it: The match number in our case is the line number. Because the numbering here starts from zero, then in order to take the second line, we indicate 1 Next, you need to specify the group number and the variable to which the result will be saved. Here, too, the numbering of groups starts from zero. But group 0 contains the entire found line ( |
...
Expand | |||||
---|---|---|---|---|---|
| |||||
We use the same text:
Our task is to parse it and save it to a table. To do this, we will use the following regular expression: This is how the output looks in the Regular Expression Tester: Let's also imagine that we don't need seconds and milliseconds in the final table. This is how it might look: The group under index 0 contains the entire match (in our case, the string), so we exclude it. In groups 6, 7 - seconds and milliseconds, respectively. |
...
Decodes an UrlEncode encoded string (described below).This action looks most obvious when decoding the Cyrillic alphabet:
Was: % D0% 9F% D1% 80% D0% B8% D0% B2% D0% B5% D1% 82% 2C% 20% D0% BC% D0% B8% D1% 80% 21
Was: Hello+G%c3%bcnter!
It became: Hello worldGünter!
...
UrlEncode
Only Latin letters, numbers and a few punctuation marks are allowed in the URL. All other characters that are transmitted in the HTTP request must be encoded using UrlEncode, otherwise the server may misinterpret the request.
...
Takes a piece of text from a string specified in the action properties by two indices - from one character to another. For example, if you take the first sentence of this paragraph and there is a task to get a substring in it from 95 106 characters to the end of the text, then we get “to another.”.
...
Transliteration
Sometimes it is still required to perevesti ( to translate) Cyrillic to Latin. This action also serves write Cyrillic words using Latin alphabet. You can do it with this action.
...