DavidSzczesniak
4/9/2018 - 2:42 PM

\x

This modifer makes the whitespace inside a pattern insignificant. Very useful for spacing out your regexes, making them more readable.

\!h # Example, allows for code spacing:

/-?[0-9]+\.?[0-9]/ # - without

/ -? [0-9] + [0-9]* /x # - with