Jump to content

استفسار


Recommended Posts

Quote

 

. = all characters

%a = letters

%c = control characters

%d = digits

%l = lower case letters

%p = punctuation characters

%s = space characters

%u = upper case letters

%w = alphanumeric characters

%x = hexadecimal digits

%z = the character with representation 0

 

Some characters, called magic characters, have special meanings when used in a pattern. The magic characters are

( ) . % + - * ? [ ^ $

The character `%´ works as an escape for those magic characters. So, '%.' matches a dot; '%%' matches the character `%´ itself. You can use the escape `%´ not only for the magic characters, but also for all other non-alphanumeric characters. When in doubt, play safe and put an escape.

 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...