Regular Expression in Yahoo Pipes

I want to know what regular expression should be used for replacement 1 - 55 of 55, to get only 55in the regex module for yahoo pipes.

thank

+3
source share
2 answers

Match

\d+ - (\d+) of \1 

with

$1
+1
source

You can try:

\d+ - (\d+) of \1

And replace with $1, as group 1 took.

\d , + . (…) , \1 , . , :

num1 - num2 of num2
        |        |
        \________/ must match


, :

\d+\s+-\s+(\d+)\s+of\s+\1

, , , \s+, , . , ..

, , \d+ \1.

\d+\s+-\s+\d+\s+of\s+(\d+)

"1 - 20 of 149", . , , (149 ), $1.

3 , :

(\d+)\s+-\s+(\d+)\s+of\s+(\d+)
\___/       \___/        \___/
  1           2            3

1, 2 3.

+1

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


All Articles