V
V
Vadim Solovyov2018-06-03 01:43:10
Regular Expressions
Vadim Solovyov, 2018-06-03 01:43:10

How to remove spaces only in http://en. website. ru/ without affecting the spaces in the rest of the text?

5b131d7bab3a4087815576.png
http://en. website. ru/ all links from http containing spaces must be automatically converted into whole links without spaces http: //en.website.ru/
What is the easiest way to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dodo512, 2018-06-03
@VadimSoloviev

Search: (http:|\G(?!\A)) ([a-z\d_./]+)
Replacement: $1$2
https://regex101.com/r/r1jDBJ/1

V
Viktor Yanyshev, 2018-06-03
@villiwalla

[^\s] will exclude spaces

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question