Action to only change the first two characters of a variable

How could I change the first 2 characters of a variable to be the characters ‘CC’ without touching the rest…?

Many thanks and Merry Christmas

You can use a "Search and Replace" action using a regular expression, like this:

Here's the Regular Expression itself:



^     Match at the start of the string
.     Match any character (except newline characters)
{2}   Modifier for ".", meaning match two characters

Could also be written:


###Alternative method:

Hope this helps. Let me know if you need more explanation.


Amazing! :upside_down:
Very quick repsonse too, many thanks!

1 Like