zeek/doc/scripts/base/utils/numbers.bro.rst
Jon Siwek 7e9d48f532 Remove broxygen Sphinx integration
The broxygen-generated files now live in the git repo, have tests
that check that they are up-to-date, and a script to re-generate
them on-demand.
2018-12-18 10:15:22 -06:00

37 lines
843 B
ReStructuredText

:tocdepth: 3
base/utils/numbers.bro
======================
Summary
~~~~~~~
Functions
#########
============================================= =================================
:bro:id:`extract_count`: :bro:type:`function` Extract an integer from a string.
============================================= =================================
Detailed Interface
~~~~~~~~~~~~~~~~~~
Functions
#########
.. bro:id:: extract_count
:Type: :bro:type:`function` (s: :bro:type:`string`, get_first: :bro:type:`bool` :bro:attr:`&default` = ``T`` :bro:attr:`&optional`) : :bro:type:`count`
Extract an integer from a string.
:s: The string to search for a number.
:get_first: Provide `F` if you would like the last number found.
:returns: The request integer from the given string or 0 if
no integer was found.