Skip to main content
Navigator | Tier 3
March 4, 2022
Question

How to write regex for applications with numbers

  • March 4, 2022
  • 5 replies
  • 111 views

application windowthe application window I want to capture has the above naming (with number which can change) . so I wanna generalize that number using regex or something else in A360

    5 replies

    Navigator | Tier 3
    March 4, 2022

    @sirispandana velagala​ : can't you able to use wildcard * in the title window where ever the number is changing ?

    Navigator | Tier 3
    March 4, 2022

    I tried 20* kits.... in regex but no luck

    Ashwin A.K
    Navigator | Tier 3
    March 4, 2022

    Hi @sirispandana velagala​ ,

     

    You don't have to toggle over to Regex, simply pass in a Wildcard directly like so:

     

    image 

    Could you try and see if that works out for you?

     

    Kind Regards,

    Ashwin A.K

    Blogs at TheCodingTheory - https://www.thecodingtheory.com
    Navigator | Tier 3
    March 4, 2022

    Tried using 20* and surprisingly it worked in the sample bot!

    Thanks

    Ashwin A.K
    Navigator | Tier 3
    March 4, 2022

    Great!

     

    There are instances where the Window Title is not available (desktop applications mostly) in those situations you will have to toggle over to "Active Window".

     

    Kind Regards,

    Ashwin A.K

    Blogs at TheCodingTheory - https://www.thecodingtheory.com