You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Is there a way to post-process acquired text with regex's search and replace before comparing it with the previous saved request?
Describe the use-case and give concrete real-world examples
Suppose we receive text after CSS/JSONPath/JQ/XPath Filters in the following format:
{title of the movie/series}
{time of its addition on the website}
{episode number}
{title of the movie/series}
{time of its addition on the website}
{episode number}
and so on, 100500 times :)
Doupo Cangqiong: Nian Fan 5
Today, 09:37
Episode 88
One Piece
Today, 08:24
Episode 1097
Taigu Xing Shen Jue
Today, 08:16
Episode 17
Kui Cheng Shoufu Cong Youxi Kaishi
Today, 08:10
Episode 8
Hanhua Riji 4th Season
Today, 08:04
Episode 3
Boku no Kokoro no Yabai Yatsu Season 2
Yesterday, 23:15
Episode 11
Ao no Exorcist: Shimane Illuminati-hen
Yesterday, 22:40
Episode 11
In this form, it is not very convenient to navigate where the data of a particular film / TV series begins and ends.
If it were possible to apply the regex /(?<=\n)( *\w+, *[0-9:]+\n *)(episode *\d+)/gmi,
and then make replacement with $1 $2\n,
the text would be much easier to read, even when comparing.
Doupo Cangqiong: Nian Fan 5
Today, 09:37
Episode 88
One Piece
Today, 08:24
Episode 1097
Taigu Xing Shen Jue
Today, 08:16
Episode 17
Kui Cheng Shoufu Cong Youxi Kaishi
Today, 08:10
Episode 8
Hanhua Riji 4th Season
Today, 08:04
Episode 3
Boku no Kokoro no Yabai Yatsu Season 2
Yesterday, 23:15
Episode 11
Ao no Exorcist: Shimane Illuminati-hen
Yesterday, 22:40
Episode 11
It would be especially convenient to receive such new data in notifications, for example, in Telegram, where there is no possibility to format the text for convenient viewing, as on a PC or laptop.
This discussion was converted from issue #2262 on March 17, 2024 21:46.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Version and OS
Is your feature request related to a problem? Please describe.
Is there a way to post-process acquired text with regex's search and replace before comparing it with the previous saved request?
Describe the use-case and give concrete real-world examples
Suppose we receive text after CSS/JSONPath/JQ/XPath Filters in the following format:
{title of the movie/series}
{time of its addition on the website}
{episode number}
{title of the movie/series}
{time of its addition on the website}
{episode number}
and so on, 100500 times :)
In this form, it is not very convenient to navigate where the data of a particular film / TV series begins and ends.
If it were possible to apply the regex
/(?<=\n)( *\w+, *[0-9:]+\n *)(episode *\d+)/gmi
,and then make replacement with
$1 $2\n
,the text would be much easier to read, even when comparing.
It would be especially convenient to receive such new data in notifications, for example, in Telegram, where there is no possibility to format the text for convenient viewing, as on a PC or laptop.
Beta Was this translation helpful? Give feedback.
All reactions