February 26, 2018
Posted by on
Very little is openly documented about Splunk regular expressions – which is surprising given how important pattern matching is when trawling through large amounts of data.
Most documentation about Splunk regular expressions is found at this linked page.
In addition the two most commonly used functions that utilise regular expressions during searches are:
- regex – filters based on regular expression, i.e. matches or doesn’t match (if field!=regex syntax is used)
- rex – allows extraction of named capturing groups from text into parameters, does not filter
The hint about supported flags comes from the documentation of the regex command which states:
The regular expression must be a Perl Compatible Regular Expression supported by the PCRE library.
Possible flags are described in PHP’s PCRE pattern modifiers page however not all apply to Splunk.
Here are the flags that appear supported in Splunk:
||Matches When Used
||^ and $ can match beginning and end of line as well as string
||Who art thou?
||dot matches newlines
||It is P
||extended, white space in expression is ignored
||ungreedy, by default make expressions ungreedy, and greedy if question mark used
||Meet the president
February 3, 2018
Posted by on
Note the instructions at the OpenTTD development page.
Get the source repository using Git (from repository):
apt-get install git
git clone http://git.openttd.org/tags/1.7.2.git
Get basic build tools:
apt-get install binutils gcc g++ make pkg-config
Get the library dependencies:
apt-get install zlib1g-dev liblzma-dev liblzo2-dev libpng-dev libfreetype6-dev libfontconfig1-dev libsdl1.2-dev libicu-dev
nice make -j 2
nice make install
Want to run it inside a LXC container with X Windows and audio? See this article.