08-27-2012
Need advice on learning RegEx
Hello Unix graduates,
I have gone through 50 posts here in this Unix.com, out of which 35-40 are answered with regex.. Regex is always been a problem for me.
I have gone through few URLs still it doesn't help me to reach what you guys are..
How to get skilled on Regex, please suggest me some good URLs or books to move on.. [I would like to answer at least one thread with regex
]
Moderator's Comments:
|
|
Just spamming "regex" is no good subject - changed that to something more descriptive. Please remember that when designing future subjects, thanks.
|
|
Last edited by zaxxon; 08-27-2012 at 10:10 AM..
Reason: changed subject
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can i do this? i am learning this on my own..and from the book..simple unix i am not sure if the syntax would work
if
statement
then
statement
do or for or while
statement
done
else
statement
fi....
I dont know how else to explain that...I hope I... (2 Replies)
Discussion started by: jonas27
2 Replies
2. UNIX Desktop Questions & Answers
I am a long-time Windows NT, 2000 user at home and work. I want to learn Unix to broaden myself. What flavor do you recommend and how do you recommend practicing with it at home? how to get a copy of it to practice with? (1 Reply)
Discussion started by: robmaxfli
1 Replies
3. UNIX for Dummies Questions & Answers
I learned Unix about 6 years ago, I think it was the System V version back then.
My course taught me, Unix commands, shell scripting, Vi editor, and probably more stuff.
I wanted to stick with Unix but life didn't allow me to, my college back then used Windows 95 and then my job as a... (8 Replies)
Discussion started by: thoughts
8 Replies
4. Shell Programming and Scripting
I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly:
if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Discussion started by: suntzu
1 Replies
5. UNIX for Dummies Questions & Answers
I have a file of protein sequences with headers (my source file). Based on a list of IDs (which are included in some of the headers), I'd like to print out only the specified sequences, with only the ID as header.
In other words, I'd like to search source.txt for the terms in IDs.txt, and print... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
6. Shell Programming and Scripting
I am not a big expert in regex and have just little understanding of that language.
Could you help me to understand the regular Perl expression:
^(?!if\b|else\b|while\b|)(?:+?\s+){1,6}(+\s*)\(*\) *?(?:^*;?+){0,10}\{
------
This is regex to select functions from a C/C++ source and defined in... (2 Replies)
Discussion started by: alex_5161
2 Replies
7. Shell Programming and Scripting
I'm trying to get some exclusions into our sendmail regular expression for the K command. The following configuration & regex works:
LOCAL_CONFIG
#
Kcheckaddress regex -a@MATCH
+<@+?\.++?\.(us|info|to|br|bid|cn|ru)
LOCAL_RULESETS
SLocal_check_mail
# check address against various regex... (0 Replies)
Discussion started by: RobbieTheK
0 Replies
8. Shell Programming and Scripting
Hello All,
I have come across a question from colleague about complex regex, so I written a regex using grep's -P option in PCRE regex. Since its a new learning for me, so thought to share with forums.
Lets say we have a Input_file with following test data:
cat Input_file
PROJECT =... (8 Replies)
Discussion started by: RavinderSingh13
8 Replies
LEARN ABOUT X11R4
macutil
MACUTIL(1) General Commands Manual MACUTIL(1)
NAME
macutil - A package that deals with MacIntosh files on a Unix system
DESCRIPTION
macutil is a package that contains a number of utilities that deal with MacIntosh files on a Unix system. It contains the following pro-
grams:
binhex Convert files to BinHex 4.0 compatible hexified form.
frommac
Receives files from the MacIntosh on the Unix system.
hexbin Convert hexified files to their MacIntosh format.
macsave
Save a series of files from a MacBinary stream as individual files.
macstream
Combine a series of files to a MacBinary stream.
macunpack
Unpack a MacIntosh archive into its constituents.
tomac Transmits files from the Unix system to a MacIntosh.
BUGS
This manual page is hopelessly incomplete!
SEE ALSO
binhex(1), frommac(1), hexbin(1), macsave(1), macstream(1), macunpack(1), tomac(1)
AUTHOR
Dik T. Winter, CWI, Amsterdam, The Netherlands (dik@cwi.nl)
3rd Berkeley Distribution October 22, 1992 MACUTIL(1)