#85 Regular expression computed

How do you create a computed property that matches a regular expression?  Here is how I used to do it:

But I found a more readable way to do it using the match computed property:


Also published on Medium.

Published by

Emad Ibrahim

Author of asp .net MVC & TDD, entrepreneur, passionate technologist, programmer and productivity nut. more at http://t.co/oSJXPvzu