📜  正则表达式 java 代码示例

📅  最后修改于: 2022-03-11 14:52:18.961000             🧑  作者: Mango

代码示例1
//Ther are three type of REGULAR EXPRESSION     
   //first
   ^(.+)@(.+)$   "^(.+)@(.+)$\""
   //second
   ^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$
     //third
   ^[\\w!#$%&'*+/=?`{|}~^-]+(?:\\.[\\w!#$%&'*+/=?`{|}~^-]+)*@(?!-)(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,6}$