09-15-2019
Regarding a GREAT site for understanding and Visualizing regex patterns.
Hello All,
While googling on regex I came across a site named Regulex
Regulex:JavaScript Regular Expression Visualizer
I have written a simple regex
^(a|b|c)([^@]*)@(.*) and could see its visualization; one could export it too, following is the screen shot.
It may help us for understanding regex expressions. I am also new to it and exploring it.
Thought to share on forums
Thanks,
R. Singh
Last edited by RavinderSingh13; 09-15-2019 at 12:30 PM..
These 8 Users Gave Thanks to RavinderSingh13 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
LEARN ABOUT DEBIAN
find_member
FIND_MEMBER(8) System Manager's Manual FIND_MEMBER(8)
NAME
find_member - Find all Mailman mailing lists that a member's address is on
SYNOPSIS
find_member [options] regex [regex [...]]
OPTIONS
-l listname, --listname=listname
Include only the named list in the search.
-x listname, --exclude=listname
Exclude the named list from the search.
-w, --owners
Search list owners as well as members.
-o file, --output=file
Append the alias setting recommendations to file, in addition to printing them to standard output.
-h, --help
Print a small help text and exit
regex A Python regular expression to match against.
NOTES
The interaction between -l and -x is as follows. If any -l option is given then only the named list will be included in the search. If
any -x option is given but no -l option is given, then all lists will be search except those specifically excluded.
Regular expression syntax is Perl5-like, using the Python re module. Complete specifications are at:
http://www.python.org/doc/current/lib/module-re.html
Address matches are case-insensitive, but case-preserved addresses are displayed.
AUTHOR
Author of Mailman is the Mailman Cabal, see http://www.list.org/ for information. This manpage is written by Tollef Fog Heen
<tfheen@debian.org> for Debian but may be used by others.
SEE ALSO
Mailman documentation on http://www.list.org/ and in /usr/share/doc/mailman.
2001-03-10 FIND_MEMBER(8)