I am facing an issue in matching a specific value in a string from a pool of keyword already provided using regex.
For example, i have to search for a keyword from a string stored in variable as str.
Keyword = “String Matching”
Str = “This is a String Matching from the string stored as variable”
I am using .
booloean = system.text.regularexpressions.regex.match(str, “^”+Keyword)
But it will only matches if keyword is at first location of string variable.
Please help me to get a regex which can also matches keyword present at the middle of string variable.
Thanks in Advance …!!