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+)*$   IP ((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)   URL http://(/%5B\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)? exclude some url pattern, like do not want to url containing /pages/:  ‘’. This is useful in stylus chrome extension when do not want to apply style for certain urls. ^https?://!/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…