正则表达式案例

替换文本格式的数据为 hashmap.put(“a1”,”b1”);

1
2
3
4
5
6
7
a1     b1 
23g sdfs


正则表达式:([A-Z0-9]+)[ ]+(.*)

hashmap.put("$1","$2")