1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Google Spread Sheet でURLだけを抜き出す方法

Posted at

正規表現をつかいます

=REGEXEXTRACT(テキスト, 正規表現)

URLの判定につかう正規表現

https?://[-_.!~*'()a-zA-Z0-9;/?:@&=+$,]+)

せっかくなので判定もさせる

=IFERROR(値, [エラー値])

組み合わせる

=IFERROR(REGEXEXTRACT(A1,"(https?://[-_.!~*'()a-zA-Z0-9;/?:@&=+$,]+)"),"無し")

参考

あとがき

スプレッドシート結構面白いです。
久し振りに頭使った感ありました。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?