Every other Friday, I am going to put up a Trello tip that I hope you will find helpful and will inspire your Trello creativity.
Anything is possible in Trello, if you use your imagination š
I will alternate between automation and general Trello tips and happy to take requests...
You can take Trello automation to new heights with RegEx...
It is supported but very little is written about this mysterious feature...
If you're new to RegEx or haven't scripted/coded before, it can be a little daunting...
If you want to learn more about RegEx, there are some great YouTube videos and I recommend these two sites:
This is a great site for learning about it:
And this is the go-to place to test out your regex search before putting it into a Trello automation command:
Top Tip 1: Always get the regex expression right in the editor before putting into a Trello command.
Top Tip 2: Google what you are looking for, easier than learning to construct yourself, almost every common example you can think of has a thread on stackoverflow.
I have 3 automations to set number custom fields to truncate to:
Note: This will not round the numeric value up or down, merely trim away the unwanted digits...
Lets start...
When using regex in Trello, you always have to start with regex:/ followed by the RegEx query, and a / to close it out.
when custom field "No decimal Place" is set to "regex:/(\d*)\.\d*/", set custom field "No decimal Place" to "{wildcard1}"
when custom field "2 Decimal Places" is set to "regex:/(\d\.\d{2})\d*/", set custom field "2 Decimal Places" to "{wildcard1}"
when custom field "4 Decimal Places" is set to "regex:/(\d\.\d{4})\d*/", set custom field "4 Decimal Places" to "{wildcard1}"
Dreamsuite Mike
Trello Expert and Business Systems Consultant
Dreamsuite
All over the world
262 accepted answers
4 comments