base/utils/urls.bro

Functions for URL handling.

Source File:/scripts/base/utils/urls.bro

Summary

Options

url_regex: pattern &redef A regular expression for matching and extracting URLs.

Functions

find_all_urls: function Extracts URLs discovered in arbitrary text.
find_all_urls_without_scheme: function Extracts URLs discovered in arbitrary text without the URL scheme included.

Detailed Interface

Options

url_regex
Type:pattern
Attributes:&redef
Default:
/^?(^([a-zA-Z\-]{3,5})(:\/\/[^\/?#"'\r\n><]*)([^?#"'\r\n><]*)([^[:blank:]\r\n"'><]*|\??[^"'\r\n><]*))$?/

A regular expression for matching and extracting URLs.

Functions

find_all_urls
Type:function (s: string) : string_set

Extracts URLs discovered in arbitrary text.

find_all_urls_without_scheme
Type:function (s: string) : string_set

Extracts URLs discovered in arbitrary text without the URL scheme included.


Previous Page

base/utils/time.bro

Copyright 2013, The Bro Project. Last updated on June 15, 2015. Created using Sphinx 1.2.2.