09-16-2019
Thanks Ravinder,
I generally use various online REGEX checkers when when I am writing REGEX expressions, mostly REGEX for PHP code.
This is the first one I have seen that has the "visualization" done like this, thanks for sharing.
The REGEX checkers I like the best have always been the ones where we can cut-and-paste our text into the checker and then see
the resulting matches so we can easily test the input versus the output when debugging.
Next time I need a REGEX I will also try this visualization tool.
Thanks for sharing.
This User Gave Thanks to Neo For This Post:
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Please help me to understand the bold segments in the below regex.
Both are of same type whose meaning I am looking for.
find . \( -iregex './\{6,10\}./src' \) -type d -maxdepth 2
Output:
./20111210.0/src
In continuation to above:
sed -e 's|./\(*.\{1,3\}\).*|\1|g'
Output: ... (4 Replies)
Discussion started by: vibhor_agarwali
4 Replies
2. Shell Programming and Scripting
# echo "Teest string" | sed 's/e*/=>replaced=</'
=>replaced<=Teest string
So, in the above code , sed replaces at the start. does that mean sed using the pattern e* settles to zero occurence ? Why sed was not able to replace Teest string.
# echo "Teest string" | sed 's/e*//g'
Tst string
... (6 Replies)
Discussion started by: chidori
6 Replies
3. Shell Programming and Scripting
can someone please confirm for me if i'm right:
the pattern:
ORA-0*(600?|7445|4)
can someone give me an idea of all the entries the pattern above will grab from a database log file?
is it looking for the following strings?:
ORA-0600
ORA-7445
4) (2 Replies)
Discussion started by: SkySmart
2 Replies
4. Shell Programming and Scripting
Hi Guys,
Could you please kindly explain what exactly the below SED command will do ?
I am quite confused and i assumed that,
sed 's/*$/ /'
1. It will remove tab and extra spaces .. with single space.
The issue is if it is removing tab then it should be Î right ..
please assist.... (3 Replies)
Discussion started by: Nandy
3 Replies
5. Shell Programming and Scripting
Hi everyone,
This regex looks simple and yet it doesn't make sense how it's manipulating the output.
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0c:49:c2:35:6v
inet addr:192.16.1.1 Bcast:192.168.226.255 Mask:255.255.255.0
inet6 addr:... (2 Replies)
Discussion started by: xcod3r
2 Replies
6. What is on Your Mind?
Our team just published this technical report on ResearchGate:
Virtualized Cyberspace - Visualizing Patterns & Anomalies for Cognitive Cyber Situational Awareness
ABSTRACT
ACKNOWLEDGMENTS
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License This... (0 Replies)
Discussion started by: Neo
0 Replies
sigtool(1) Clam AntiVirus sigtool(1)
NAME
sigtool - signature and database management tool
SYNOPSIS
sigtool [options]
DESCRIPTION
sigtool can be used to generate MD5 checksums, convert data into hexadecimal format, list virus signatures and build/unpack/test/verify CVD
databases and update scripts.
OPTIONS
-h, --help
Output help information and exit.
-V, --version
Print version number and exit.
--quiet
Be quiet - output only error messages.
--stdout
Write all messages to stdout.
--hex-dump
Read data from stdin and write hex string to stdout.
--md5 [FILES]
Generate MD5 checksum from stdin or MD5 sigs for FILES.
--mdb [FILES]
Generate .mdb signatures for FILES.
--html-normalise=FILE
Create normalised HTML files comment.html, nocomment.html, and script.html in current working directory.
--utf16-decode=FILE
Decode UTF16 encoded data.
--vba=FILE
Extract VBA/Word6 macros from given MS Office document.
--vba-hex=FILE
Extract Word6 macros from given MS Office document and display the corresponding hex values.
-i, --info
Print a CVD information and verify MD5 and a digital signature.
-b, --build
Build a CVD file. -s, --server is required.
--server
ClamAV Signing Service address (for virus database maintainers only).
--unpack FILE, -u FILE
Unpack FILE (CVD) to a current directory.
--unpack-current
Unpack a local CVD file (main or daily) to current directory.
--diff=OLD NEW, -d OLD NEW
Create a diff file for OLD and NEW CVDs/INCDIRs.
--run-cdiff=FILE, -r FILE
Execute update script FILE in current directory.
--verify-cdiff=FILE, -r FILE
Verify DIFF against CVD/INCDIR.
-l[FILE], --list-sigs[=FILE]
List all signature names from the local database directory (default) or from FILE.
-fREGEX, --find-sigs=REGEX
Find and display signatures from the local database directory which match the given REGEX. The whole signature body (name, hex
string, etc.) is checked.
-fREGEX, --decode-sigs=REGEX
Decode signatures read from the standard input (eg. piped from --find-sigs)
-fREGEX, --test-sigs=DATABASE TARGET_FILE
Test all signatures from DATABASE against TARGET_FILE.
EXAMPLES
Generate hex string from testfile and save it to testfile.hex:
cat testfile | sigtool --hex-dump > testfile.hex
CREDITS
Please check the full documentation for credits.
AUTHOR
Tomasz Kojm <tkojm@clamav.net>
SEE ALSO
freshclam(1), freshclam.conf(5)
ClamAV 0.96.1 February 12, 2007 sigtool(1)