S
S
Sergey Kharchevnikov2020-02-17 16:49:32
Regular Expressions
Sergey Kharchevnikov, 2020-02-17 16:49:32

How to remove certain text with regular expressions?

The text contains inserts in the form

/web/20171226040616/http://www.vk.com/share.php?url=
, they all start with /web/, then there may be numbers with letters and a slash, how can I delete them in bulk so that it remains http://www.vk.com/share.php?url=?

It is also necessary, along with the comments, to cut out all the text that starts with and ends with

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VicTHOR, 2020-02-17
@sergey_harchevnikov

Find /web/[^/]*/(\S*)
Replace \1
Loop Search

M
Michael Aniskin, 2020-03-06
@MichaelAniskin

\/web\/\w.*(?=http) replace with '' removes everything from /web/ to http not including http

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question