Answer the question
In order to leave comments, you need to log in
How to remove chunks in a text with a regex?
There is a line with the text:
random text 1***trash2***y6f dhy 1 month ago 14 minutes, 29 seconds 3,620 name***trash3***random text 1","random text 2***trash2***pot 5aq 3 months ago 9 minutes, 9 seconds 226,629 name***trash3***random text 2","random text 3***trash2***uan 4fp 5 months ago 26 minutes 506,950 name***trash3***random text 3"
***trash3***
and any random text immediately following it up to the closing quote (do not remove the quote). ***trash2***
, but we do not delete it. ***trash2***
and цифрой пробел и временным названием
. Like 2 year, 27 years, 1 day, 6 days... and so on. ***trash2***
and any of these values:{цифра} minutes
{цифра} minute
{цифра} day
{цифра} days
{цифра} weeks
{цифра} week
{цифра} hours
{цифра} hour
{цифра} years
{цифра} year
{цифра} months
{цифра} month
Answer the question
In order to leave comments, you need to log in
(?<=\*\*\*trash2\*\*\*)(\w+\s+\w+)+|((\*\*\*trash3\*\*\*)(\w+\s+\ w)+")
tyts yellow
tyts blue
still blue so to speak creative interpretation
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question