Regular Expressions(정규표현식)

  • A tool that you can find specific word in String

compile

exec

test

returns as Boolean

STRING METHOD

match

replace

OPTION

  • i : does not care whether uppercase or lowercase
  • g: returns all the result
  • ig : can find all result whether uppercase or lowercase

CAPTURE

  • \w : you are getting words from A~Z, a~z, 0~9
  • + : more than one value
  • \s : represents space

REPLACE

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store