2014/07/10

[Java] 正規表達式筆記


基本表達

abc – exactly this sequence of three letters
[abc] – any one of the letters a, b, or c
[^abc]– any character except one of the letters a, b, or c
[ab^c] – a,b,^ or c. (^擺在[後表否定,擺在中間表字元)
[a-z] – any one character from a to z
[a-zA-Z0-9] – any one letter or digit

[Java] HashMap簡易使用方法及如何排序


[Java] 正規表達式範例