Skip to content

Instantly share code, notes, and snippets.

@saurabh-sp-tripathi
Last active August 9, 2018 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saurabh-sp-tripathi/11806446e53648d13740e355faf427aa to your computer and use it in GitHub Desktop.
Save saurabh-sp-tripathi/11806446e53648d13740e355faf427aa to your computer and use it in GitHub Desktop.

match anything : .* eg: regex \(.*\) matches (a, b, c, d) or (a..dlldkfjdlkjaoi) or (9788E98e7r8e((&^&*^&)

  • find & replace
PaymentByCard.nameOfBrowser.equalsIgnoreCase\(("[a-z]*")\)
$1.equalsIgnoreCase(browserName)
==> "chrome".equalsIgnoreCase(browserName)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment