Hi Team,
I am facing issue in regex.
My requirement is to capture word before and after “by”. For that i used below regex present in screenshot
But If you see the last line in Test string it is also having “By” word but its not highlighting word which are present before and after “by” because its including special character after “2020”
I need such regex which can accept any value (number,word,special character) after and before “by”
pls help in this to capture special character also after and before “by” word
Hi @vickydas,
The regex which u gave doesnt work with special character.
See the last line in screenshot.It also containing by word but it not highlighting forward and backward word. Becuase after 2020 there is special character.
please give solution on this
HI @vickydas,
what if i try to capture 2 or 3 word ahead and behind from “by”.
The number which we are passing in {} is dynamic means sometimes we need to capture 2 or sometimes 6 depend on users. In such case its not working
I change {} values from 1 to 3(see in screenshot). But it fails to capture 3 forward and backward from “by”
And also as I said, it should work for all special character because u did it for . only.
pls help me to resolve this