Skip to main content
Answer

Invalid expression

  • January 16, 2024
  • 3 replies
  • 173 views

Forum|alt.badge.img+4

wondering why am I getting invalid expression even if my regex expression matches with
 

Tax (30%) - $46    

Best answer by Abhay Naik

Hi @manognya.prasad ,

$ in AA indicates that you are starting a variable so the command expects you to close it with $. But since you are trying to pass the regex with “$” symbol you should put $$ which is interpreted as “$” symbol.

 

Hope this helps

3 replies

Forum|alt.badge.img+1
  • Cadet | Tier 2
  • January 16, 2024

The $ sign is a sign reserved for Automation Anywhere and indicates that you are using Variable, You must remove it 

 


rohit.k2
Cadet | Tier 2
Forum|alt.badge.img+1
  • Cadet | Tier 2
  • January 17, 2024

You can use additional ‘$’ to make it a valid expression.

$ -→ $$


Abhay Naik
Forum|alt.badge.img+8
  • Navigator | Tier 3
  • Answer
  • January 17, 2024

Hi @manognya.prasad ,

$ in AA indicates that you are starting a variable so the command expects you to close it with $. But since you are trying to pass the regex with “$” symbol you should put $$ which is interpreted as “$” symbol.

 

Hope this helps