Skip to main content
Question

Hello, I need to use regular expression to get task bot

  • October 18, 2022
  • 3 replies
  • 181 views

Forum|alt.badge.img+7
Hello, I need to use regular expression to get task bot

3 replies

Forum|alt.badge.img+7
  • Author
  • Navigator | Tier 3
  • October 18, 2022

I need to extract task name when i assigned this varible '$System:AATaskName$' I got the full path of bot for ex: 'Bot\MyTasks\Prepare file' i want to get just the name 'Prepare file' by using regular expression 


Ashwin A.K
Forum|alt.badge.img+10
  • Navigator | Tier 3
  • October 18, 2022

Hi @Noura Almutair​ ,

 

Would you be so kind as to explain what it is that you are trying to achieve here?

I don't see why you'd want use this approach to call taskbots, its better to use If Action to call the appropriate taskbot.

 

Kind Regards,

Ashwin A.K


Forum|alt.badge.img+6
  • Navigator | Tier 3
  • October 18, 2022

@Noura Almutair​  try this regex:

 

[^\\]+$