Validation Expressions 
Metacharacter Match

\ the escape character - used to find an instance of a metacharacter like a period, brackets, etc.
. (period) match any character except newline
x match any instance of x
^x match any character except x
[x] match any instance of x in the bracketed range - [abxyz] will match any instance of a, b, x, y, or z
| (pipe) an OR operator - [x|y] will match an instance of x or y
() used to group sequences of characters or matches
{} used to define numeric quantifiers
{x} match must occur exactly x times
{x,} match must occur at least x times
{x,y} match must occur at least x times, but no more than y times
? preceding match is optional or one only, same as {0,1}
* find 0 or more of preceding match, same as {0,}
+ find 1 or more of preceding match, same as {1,}
^ match the beginning of the line
$ match the end of a line

POSIX Class Match

[:alnum:] alphabetic and numeric characters
[:alpha:] alphabetic characters
[:blank:] space and tab
[:cntrl:] control characters
[:digit:] digits
[:graph:] non-blank (not spaces and control characters)
[:lower:] lowercase alphabetic characters
[:print:] any printable characters
[:punct:] punctuation characters
[:space:] all whitespace characters (includes [:blank:], newline, carriage return)
[:upper:] uppercase alphabetic characters
[:xdigit:] digits allowed in a hexadecimal number (i.e. 0-9, a-f, A-F)

Character class Match

\d matches a digit, same as [0-9]
\D matches a non-digit, same as [^0-9]
\s matches a whitespace character (space, tab, newline, etc.)
\S matches a non-whitespace character
\w matches a word character
\W matches a non-word character
\b matches a word-boundary (NOTE: within a class, matches a backspace)
\B matches a non-wordboundary

\
The backslash escapes any character and can therefore be used to force characters to be matched as literals instead of being treated as characters with special meaning. For example, '\[' matches '[' and '\\' matches '\'.
.
A dot matches any character. For example, 'go.d' matches 'gold' and 'good'.
{ }
{n} ... Match exactly n times
{n,} ... Match at least n times
{n,m} ... Match at least n but not more than m times
[ ]
A string enclosed in square brackets matches any character in that string, but no others. For example, '[xyz]' matches only 'x', 'y', or 'z', a range of characters may be specified by two characters separated by '-'. Note that '[a-z]' matches alphabetic characters, while '[z-a]' never matches.
[-]
A hyphen within the brackets signifies a range of characters. For example, [b-o] matches any character from b through o.
|
A vertical bar matches either expression on either side of the vertical bar. For example, bar|car will match either bar or car.
*
An asterisk after a string matches any number of occurrences of that string, including zero characters. For example, bo* matches: bo, boo and booo but not b.
+
A plus sign after a string matches any number of occurrences of that string, except zero characters. For example, bo+ matches: boo, and booo, but not bo or be.
\d+
matches all numbers with one or more digits
\d*
matches all numbers with zero or more digits
\w+
matches all words with one or more characters containing a-z, A-Z and 0-9. \w+ will find title, border, width etc. Please note that \w matches only numbers and characters (a-z, A-Z, 0-9) lower than ordinal value 128.
[a-zA-Z\xA1-\xFF]+
matches all words with one or more characters containing a-z, A-Z and characters larger than ordinal value 161 (eg. ä or Ü). If you want to find words with numbers, then add 0-9 to the expression: [0-9a-zA-Z\xA1-\xFF]+


Typical examples

(bo*)
will find "bo", "boo", "bot", but not "b"
(bx+)
will find "bxxxxxxxx", "bxx", but not "bx" or "be"
(\d+)
will find all numbers
(\d+ visitors)
will find "3 visitors" or "243234 visitors" or "2763816 visitors"
(\d+ of \d+ messages)
will find "2 of 1200 messages" or "1 of 10 messages"
(\d+ of \d+ messages)
will filter everything from the last occurrence of "2 of 1200 messages" or "1 of 10 messages" to the end of the page
(MyText.{0,20})
will find "MyText" and the next 20 characters after "MyText"
(\d\d.\d\d.\d\d\d\d)
will find date-strings with format 99.99.9999 or 99-99-9999 (the dot in the regex matches any character)
(\d\d\.\d\d\.\d\d\d\d)
will find date-strings with format 99.99.9999
(([_a-zA-Z\d\-\.]+@[_a-zA-Z\d\-]+(\.[_a-zA-Z\d\-]+)+))
will find all e-mail addresses

[ add comment ]   |  permalink  |  related link  |   ( 3 / 4094 )
Picasa 相册 屏蔽 翻墙 host 批处理 
Picasa 相册 屏蔽 翻墙 host 批处理

相信能找到这篇文章的一定不是菜鸟

保存到记事本后重命名为 picasa.bat 双击运行

话不多说 直接上代码(转载的)

@attrib %windir%\SYSTEM32\drivers\etc\hosts -r
@echo 203.208.39.104 picadaweb.google.com >> %windir%\SYSTEM32\drivers\etc\hosts
@echo 203.208.39.104 lh1.ggpht.com >> %windir%\SYSTEM32\drivers\etc\hosts
@echo 203.208.39.104 lh2.ggpht.com >> %windir%\SYSTEM32\drivers\etc\hosts
@echo 203.208.39.104 lh3.ggpht.com >> %windir%\SYSTEM32\drivers\etc\hosts
@echo 203.208.39.104 lh4.ggpht.com >> %windir%\SYSTEM32\drivers\etc\hosts
@echo 203.208.39.104 lh5.ggpht.com >> %windir%\SYSTEM32\drivers\etc\hosts
@echo 203.208.39.104 lh6.ggpht.com >> %windir%\SYSTEM32\drivers\etc\hosts

注销或重启后有效
if it does not work, try to change IP address above as following
203.208.39.99 or 203.208.33.100

Good luck!!




[ add comment ]   |  permalink  |  related link  |   ( 3 / 3928 )
Ping work but no internet 
TCP/IP stack repair options for use with Windows XP with SP2/SP3.

Start, Run, CMD to open a command prompt:

In the command prompt window that opens, type type the following commands:

Note: Type only the text in bold for the following commands.

Reset TCP/IP stack to installation defaults, type: netsh int ip reset reset.log

Reset WINSOCK entries to installation defaults, type: netsh winsock reset catalog

Reboot the machine.


[ add comment ]   |  permalink  |  related link  |   ( 3 / 3741 )
How-To: Find your Windows XP Product Key on the Windows XP CD 
I have only tried it on a XP Professional CD, but it should work for the Home and OEM versions of Windows XP from restore disks.

How-To: Find Windows XP Product Key from the Windows XP CD:

1) Insert Windows XP cd into a working computer.
2) Exit the Autorun introduction.
3) Open “My Computer”
4) Right Click on the Windows XP cd-rom drive and select explore.
5) Open the USWXP32P_ZX folder. (It may be as a hidden folder. If you cannot locate the folder, you may also search for unattend.txt and mark “Search Hidden Files”.)
6) Open the sysprep folder.
7) Open unattend.txt

Your CD’s product key is contained within the unattend.txt file.

[ add comment ]   |  permalink  |  related link  |   ( 3 / 2194 )
How to disable Adobe updater 
The solution is very simple. Find through search in disc C file “AdobeUpdaterPrefs.dat” (c:\Documents and Settings\UserName\Local Settings\Application Data\Adobe\Updater5), click with right mouse button and change Attributes of this file to "Read only". UPD: Open this file with any text editor (Notepad) and change year value in this line to 2008 or 2009 <LastDateCheck>2008-10-29</LastDateCheck> or just delete this file, though its very radical cure to my mind.

[ add comment ]   |  permalink  |  related link  |   ( 3 / 8161 )

BackBack NextNext