Regular Expressions are everywhere, from software development to mobile applications, and being familiar with it can be of great use if you work with programming or data analysis.

Before we actually start, if you don’t know exactly what regular expressions are, here is a quick intro (from Wikipedia):

A regular expression (shortened as regex or regexp) is a sequence of characters that define a search pattern. Usually, such patterns are used by string-searching algorithms for “find” or “find and replace” operations on strings, or for input validation.

If you work with websites, apps, or development of any kind of software…


One of the most difficult things in software development is: naming things. This includes variables, functions, classes, and of course, components.

To handle this problem accordingly, especially if you work in a team, nothing like a pattern to help us make things more consistent and easier.

In my team, we've created a pattern for helping us naming UI components, we call it CEV. I know, not so pretty, but works for us. 😄

The CEV pattern

CEV stands for Context, Element, and Variant. We call each of these a token of the component's name.

Take a look at each one in detail, and…

André Ferraz

A web developer from Belo Horizonte, Brazil

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