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 May 3, 2017 at 10:12

Your Answer

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

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