Back
4 mins read

Regular Expressions Hidden in the Templates

Blog placeholderBlog placeholder
If we engaged a function to detect joy into our application, it would certainly return negative values whenever a PPC Bee user encounters regular expressions. Regular expression became one of the scary functions, although they are a very powerful element of our application.
By
PPC Bee
| Jul 26, 2016
Let´s sum up what regular expressions are. “A regular expression is a combination of characters that maps patterns in text and allows their search or replacement. Its most fundamental application is similar to the “Find and Replace” function that you know well e.g. from MS Excel. If you manage large PPC campaigns, you deal with large amounts of data. Editing them using RegExps is much easier. They can, for example, remove all the text in brackets or all the colors.” But this is only a per mille of what you can do with RegExps. Most of you know what RegExp is good for this or that. You have entered some 700 unique ones into our application! This also proves that RegExps are true helpers for you.

That is why we decided to simplify your work with them.

The first step towards this includes templates of the most frequently used RegExps which we put wherever you can encounter RegExps in the App. No longer you have to keep sitting at the computer and ruminating over the correct form of a regular expression when removing unwanted text, numbers and characters. Just click and you’re done!

https://blogadmin.ppcbee.com/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdHNDIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--264d05816a5419356da1ffb4bef5ec9bc6d673da/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQWxnQ2FRT2doZ0U9IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--b1b529f8dfa4cfc5545b605b986d2f12cc3d32fa/0-0*L3CiSSHT2-J42qhl.pnghttps://blogadmin.ppcbee.com/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdHNDIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--264d05816a5419356da1ffb4bef5ec9bc6d673da/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQXJBRWFRT2doZ0U9IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--21b5f9fec4a1a26d9fca8e4bc575ac97c48ec932/0-0*L3CiSSHT2-J42qhl.png




How to use the regular expression template?

Let´s look at the example of “find and replace” in editing a keyword generator. Click in the first box where you start editing the command “find”.

https://blogadmin.ppcbee.com/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdHdDIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--59dd18fbec19d357c7a1166e0e46bb27900ac674/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQWxnQ2FRT2doZ0U9IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--b1b529f8dfa4cfc5545b605b986d2f12cc3d32fa/1-0*9hYHk8vHfe6he-Wm.pnghttps://blogadmin.ppcbee.com/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdHdDIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--59dd18fbec19d357c7a1166e0e46bb27900ac674/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQXJBRWFRT2doZ0U9IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--21b5f9fec4a1a26d9fca8e4bc575ac97c48ec932/1-0*9hYHk8vHfe6he-Wm.png


Then click “Examples of regular expressions” above the entry boxes.

https://blogadmin.ppcbee.com/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdDBDIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--08c17301ac199c97cf01d8e6a6c602f235d56ef6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQWxnQ2FRT2doZ0U9IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--b1b529f8dfa4cfc5545b605b986d2f12cc3d32fa/2-0*09U4PB1qFMKg0Y0K.pnghttps://blogadmin.ppcbee.com/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdDBDIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--08c17301ac199c97cf01d8e6a6c602f235d56ef6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQXJBRWFRT2doZ0U9IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--21b5f9fec4a1a26d9fca8e4bc575ac97c48ec932/2-0*09U4PB1qFMKg0Y0K.png


This activates a window where you can see an overview of basic regular expressions.

https://blogadmin.ppcbee.com/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdDRDIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3755755dfca55048a648378dcb92b3b7d0834199/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQWxnQ2FRT2doZ0U9IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--b1b529f8dfa4cfc5545b605b986d2f12cc3d32fa/3-0*3e3Ly-swk-PSxHvM.pnghttps://blogadmin.ppcbee.com/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdDRDIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3755755dfca55048a648378dcb92b3b7d0834199/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQXJBRWFRT2doZ0U9IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--21b5f9fec4a1a26d9fca8e4bc575ac97c48ec932/3-0*3e3Ly-swk-PSxHvM.png



You choose the regular expression that you need. Use the + sign to add it in the entry box at the start of editing. Your selection closes the window and you can continue editing.

If you don’t find a suitable RegExp template, you can, of course, enter your own RegExp. Or use a template which you then adjust to your image. So far, you cannot define your own templates. If you want to include you unique RegExp in the list, let us know. We’ll add it.

Currently we are going through your 700 RegExps and choosing such onesthat can be helpful for more users. Thus the template list is not complete, it will grow gradually.

Read more about RegExps in our earlier-published but still topical blogpost. Don’t forget to let us know how you like working with RegExp templates. We’re looking forward to your feedback as always at info@ppcbee.com or through our chat application or on the Web.

1 tdlzzyv7s4agz9u 1 bxta
PPC Bee
Editor of PPC Bee

Related articles

Read more

PPC Bee Partner Talks with Heureka.cz

Last week, we and our clients held the very first meeting from a planned series of events—PPC Bee Partner Talks. The pros running Heureka.cz were invited to the first Partner Talk which offered an interesting program spanning an entire afternoon.

By Adam VašendaOct 18, 2019 | 4 mins read

Read more

A little throwback to 2018

How many lines of source code does PPC Bee consist of? How many new partners have joined our team? And how many pounds of honey have made the day of our clients and others?

By Michaela ZákopčaníkováJun 5, 2019 | 1 min read

Read more

Capitalization in Ads

In the past, PPC Bee automatically changed your capitalized words. Because of them your ads can be rejected (primarily by AdWords). There are, however, several clients whose brand name is comprised of uppercase letters, and there was no way for them to keep this in their ads. Thus we have decided to meet their needs and now we have enabled capitalized words in ads.

By PPC BeeSep 5, 2017 | 1 min read