regular expressions Archives - WPXTen
Summer Sale 50% OFF! Ends in:
Special Offer Buy Everything for 1018$ $99

How to format numbers in After Effects?

    1. Create a text layer.
    2. Add a Slider Control to the text layer and rename it to Number.
    3. Alt-click on the Source Text property and paste the expressions below.

  1. Create 2 keyframes on the slider with 0 and 1000000 values.

How does it work?

The expression uses a regular expression to search for the number pattern and modifies it. You can learn more about regular expressions at https://en.wikipedia.org/wiki/Regular_expression

How to make a number bigger than 1,000,000?

Change the multiplier variable to 10, 100, etc.

How to change the dollar sign?

Change the prefix variable to any symbol, word or leave it blank like this “”.

How to add a word after the number?

Change the postfix variable.

How to highlight the first word in your text layer automatically?

  1. Create a text layer.
  2. Press Animate – Fill Color – RGB.
  3. Expand Advanced property and change Units to Index.
  4. Alt-click on the End property and paste an expression below.

How does it work?

The regular expression look for special characters like space, semicolon, enter, etc. and separates the match from the rest of the text.

How to highlight only the first letter?

Remove expression from End property and set the value to 1.

Welcome to WPXTen Points
Become a member
With more ways to unlock exciting perks, this is your all access pass to exclusive rewards.
Already have an account? Sign in
WPXTen Points
Earn more WPXTen Points for different actions, and turn those points into awesome rewards!
Referrals
Give your friends a reward and claim your own when they make a purchase.
They get
$15 off discount
You get
$15 off discount
WPXTen Points
Share on Facebook
3 Points
Like on Facebook
1 Point
Follow on Instagram
1 Point
Place an order
1 Point for every $10 spent
Celebrate a birthday
2 Points
Ways to spend
Use at checkout
1 Point = $1
Use your points at checkout with any purchase. Points will not expire.

Latest Updates

And other things