Im trying to apply a grep to my paragraph style. this is the text: "s. 02" I want to apply some special formatting for the last character, "2".

But it seems i cant target it, can you help?

1 Answer 1


Grepping for .{1}$ should do the trick.

See http://regexr.com/3fsks for test

  • My pleasure, have a good day Commented May 3, 2017 at 10:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.