anton zamov it expert logo    

home page latest news web development curriculum vitae scripts contact me


  • Curriculum Vitae (CV)
  • Major web solutions
  • Web design projects
  • Software solutions


  • C# (Microsoft .NET)
  • JAVA
  • Dynamic HTML
  • PHP & MySQL
  • ASP.NET - C# & VB.NET
  • Perl & CGI
  • C | C++
  • Vector Markup Language
  • SMIL
  • Assembler
  • Databases
  • Wap Development
  • Web site promotion
  • Web Marketing




Perl regular expressions character classes

(Perl free example written by Anton Zamov.)


Perl regular expressions character classes

d A digit, same as [0-9]
D A nondigit, same as [^0-9]
w A word character (alphanumeric), same as [a-zA-Z_0-9]
W A nonword character, [^a-zA-Z_0-9]
s A whitespace character, same as [tnrf]
S A non-whitespace character, [^tnrf]
^ Matches at the beginning of the string (or line, if /m used)
$ Matches at the end of the string (or line, if /m used)
b Matches at word boundary (between w and W)
B Matches except at word boundary
A Matches at the beginning of the string
Z Matches at the end of the string or before a newline
z Matches only at the end of the string
G Matches where previous m//g left off

Maximal Minimal Allowed Range
{n,m} {n,m}? Must occur at least n times but no more than m times

{n,} {n,}? Must occur at least n times

{n} {n}? Must match exactly n times

* *? 0 or more times (same as {0,})

+ +? 1 or more times (same as {1,})

? ?? 0 or 1 time (same as {0,1})













Jobs Portal, poweful jobs board software

PHP Mall, multi vendors mall website software

Car Portal, php script for auto classifieds websites

NetArt Media, software products and services

Real Estate Portal, web software for real estate portals

Blog System, multi user blog hosting script

PHP Store, powerful e-commerce system written in PHP


C# (Microsoft .NET) | JAVA | Dynamic HTML | PHP & MySQL | Perl & CGI | C | C++ | Vector Markup Language
SMIL | Assembler | Databases | Wap Development | Web site promotion | Web Marketing

Copyright © Anton Zamov 1998 - 2023