https://github.com/vasnt/Search-Strategies
Collection of discrete search techniques
https://github.com/vasnt/Search-Strategies
find formula google-sheets search url-parser
Last synced: about 2 months ago
JSON representation
Collection of discrete search techniques
- Host: GitHub
- URL: https://github.com/vasnt/Search-Strategies
- Owner: vasnt
- License: gpl-3.0
- Created: 2023-01-26T11:18:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-29T14:35:26.000Z (about 2 years ago)
- Last Synced: 2023-10-27T20:29:22.362Z (over 1 year ago)
- Topics: find, formula, google-sheets, search, url-parser
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### 1) (Base) Domain Name extraction from the full link
- Should be used in Search Function Implementation in any app for user convenience. i.e.
> ` www.ABC.com/xyz ---> ABC Https://DEF.com/xyz ---> DEF `- If user searches documents within your app by string (copied directly form browser/somewhere) ` www.ABC.com/xyz ` & equivalent match is not found then, below formulae (typical example with Google sheets) will extract only Domain Name i.e. ABC from it and search continues....
Google sheet formuale (full link is placed in cell A1):
```
=REGEXREPLACE(REGEXEXTRACT(A1, "(?i)^(?:https?:\/\/)?(?:www\.)?([^\/]+)/?"),"\..*","")
```#### Further reading/Next TODO
- https://www.rfc-editor.org/rfc/rfc3986#appendix-B
- https://regex101.com/r/ibVctF/1
- https://stackoverflow.com/questions/736513/how-do-i-parse-a-url-into-hostname-and-path-in-javascript
- https://gist.github.com/metafeather/202974