Forum Discussion

sharmaankit's avatar
sharmaankit
New Contributor
6 years ago

Unable to search objects using Regex in scripts

I have been working with Regex in scripts and trying to search for all the links on the page which starts with same unique string.  Below code is returning zero objects but if i use an (*) at the end...
  • sharmaankit's avatar
    sharmaankit
    6 years ago

    Thanks Tanya,

    Regex was fine and i figured it out that if i use  "Non-Native Regular Expressions" i need to use doube slash instead of one

     

    This is the updated regex

    "regexp:^javascript: topLevelMenus\\['shared'\\].menuClick.*?"