^从行开始处匹配,$从行结束处开始匹配。A从字符串开始处匹配,从字符串结束处匹配。
1.匹配十六进制的字符串
http://stackoverflow.com/questions/223832/check-a-string-to-see-if-all-characters-are-hexadecimal-values
// For C-style hex notation (0xFF) you can use @"A(0[xX])?[0-9a-fA-F]+"
@"A[0-9a-fA-F]+"
@"^[0-9a-fA-F]$"
关于A和的,还要抽时间做实验