Skip to content

Welcome to Tech by Example

Menu
  • Home
  • Posts
  • System Design Questions
Menu

Tag: url

Extract a URL from a string in Ruby Language

Posted on July 23, 2021July 23, 2021 by admin

Overview URI module can be used to extract URL from a given string https://ruby-doc.org/stdlib-2.5.1/libdoc/uri/rdoc/URI.html We can use the Extract method of the URI module https://ruby-doc.org/stdlib-2.5.1/libdoc/uri/rdoc/URI.html#method-c-extract Below is the signature of the method…

Parse a URL and extract all the parts in Ruby Language

Posted on July 23, 2021July 23, 2021 by admin

Overview URI module can be used to parse a URL and extract all parts https://ruby-doc.org/stdlib-2.5.1/libdoc/uri/rdoc/URI.html Once the given URL is parsed correctly, then it will return the URI object. We can then…

©2025 Welcome to Tech by Example | Design: Newspaperly WordPress Theme