Comparison of various regexp syntax:
Regexp Syntax Summary
Learn about Perl regexp:
perlrequick,
perlretut,
perlre
vim: I began learning about regular expressions from using Vim's regexp, and I can attest to its flexibility + features. When you say
vi, you're most likely using
vim in vi-compatible mode - so don't limit yourself and do enable Vim's full features (with
:set nocp). Vim allows you to visually learn about regexp matching with highlighted search:
:set hlsearch
:set incsearch
sed: You can replace
sed commands with
perl. You're better off in the long run learning Perl, IMHO.
grep: Beyond simple regexp, there's
ack - use Perl regular expressions!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.