PolarBearGG
@PolarBearGG
I know that I know nothing

Как достать URL из текста?

Пример - [URL=https://asjda;sjd;ajs.asdasdl/.edit#gid=0[/URL]
Нужно - https://asjda;sjd;ajs.asdasdl/.edit#gid=0
Помогите пожалуйста

UPD:
так =REGEXEXTRACT(I7;"[URL=(^.*)]+") получаю URL=
  • Вопрос задан
  • 178 просмотров
Решения вопроса 1
deepblack
@deepblack
spoiler
At this time the Spreadsheet Service of Google Apps Script is not able to get the properties of cells rich text content, just the plain text by using getValue() method. Other methods like getFormula(), getNote() are able to get the corresponding cell property, but none of the them includes the URL of the link.

Source

Только вручную.


UPD:
=TRIM(REGEXEXTRACT(REGEXREPLACE(A2;"\[URL=";""); "https://[\w/\-?=%.]+\.[\w/\-?=%#.]+"))


5dea5aa253555843893555.png
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы