Knowledge - Transfers
Perl Regular Expressions : Quick (Incomplete) Reference
Metacharacters
These need to be escaped to be matched.
\ . ^ $ * + ? { } [ ] ( ) |Escape sequences for pre-defined character classes
- \d – a digit – [0-9]
- \D – a nondigit – [^0-9]
- \w – a word character (alphanumeric including underscore) – [a-zA-Z_0-9]
- \W – a nonword character – [^a-zA-Z_0-9]
- \s – a whitespace character – [ \t\n\r\f]
- \S – a non-whitespace character – [^ \t\n\r\f]
Assertions
Assertions have zero width.
- ^ – Matches the beginning of the line
- $ – Matches the end of the line (or before a newline at the end)
- \B – Matches everywhere except between a word character and non-word character
- \b – Matches between word character and non-word character
- \A – Matches only at the beginning of a string
- \Z – Matches only at the end of a string or before a newline
- \z – Matches only at the end of a string
- \G – Matches where previous m//g left off
Minimal Matching Quantifiers
The quantifiers below match their preceding element in a non-greedy way.
- *? – zero or more times
- +? – one or more times
- ?? – zero or one time
- {n}? - n times
- {n,}? – at least n times
- {n,m}? – at least n times but not more than m times
Courtesy : http://www.somacon.com/p127.php
Categories
- Accounts, Finance
- Architect,Interior Design
- Automobiles
- Banking, Financial Services
- BPO, KPO
- Construction, Engineering
- Consultants
- Content, Journalism
- Engineering Design
- Export, Import
- Fashion
- Feng Shui
- Gadgets
- Global, Climate
- Healthcare, Medical
- Hotels, Restaurants
- HR, Admin
- Insurance
- IT, Software Services
- IT- Hardware
- Management
- Marketing, Advertising
- Media, Entertainment
- NGO
- Other
- Pharma, Biotech
- Photography
- Recipe
- Retail
- Site Engineering
- Teaching, Education
- Telecom
- Travel
- Trekking and Mountaineering
- TV, Films
- Web, Graphic Design
Calendar
February 2012 M T W T F S S « Jul 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
Add Widgets (Secondary Sidebar)
This is your Secondary Sidebar. Edit this content that appears here in the widgets panel by adding or removing widgets in the Secondary Sidebar area.




