Search code examples
regexacrobat

Regex to see if last character is 'U' or 'C'


I am writing an Acrobat Professional DC custom Preflight profile in which I need to check if the spot colors names finishes with either 'U' or 'C'.

Can a regex solve this?


Solution

  • This regex does that:

    [UC]$
    

    The $ ensures that the match occurs at the end of the string.