useful regex

Date: ^(0[1-9]|1[0-2])/(0[1-9]|1\d|2\d|3[01])/(\d{4})$ mm/dd/yyyy   Email ^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$ xx@163.com   IP ((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?) 255.255.255.255   URL http://(/%5B\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)? http://www.cnn.com exclude some url pattern, like do not want to url containing /pages/:  ‘github.kdc.capitalone.com/pages/xxx’. This is useful in stylus chrome extension when do not want to apply style for certain urls. ^https?://github.kdc.capitalone.com((?!/pages/).)*$  

generate builder pattern code in intellij

Use: Replace Constructor with Builder Place the caret at the constructor invocation to be replaced. Open Replace Constructor with Builder dialog box by choosing Refactor | Replace Constructor with Builder on the main menu, or on the context menu of the selection. The dialog box shows the list of constructor parameters to be passed to the builder, and the…