I have a regx code like
The above code will remove the words THE & AND in a beginning of a line. it works fine.
Now i have a asset say (ExcemptKeywords) which has the words THE, AND, WAS… will be access these in a loop. My question is How to get this ExcemptKeywords asset variable inside this regx i tried like below but not working. Kindly help me to modify the below code.
Is the words THE, AND, WAS was in array or excel where did you get this data from…
Words (THE, AND, WAS) is coming from asset these values will be added using comma.
Using for loop reading the asset (item).
In the code below how to remove THE|AND… and place this item.tostring?
Please try this
assume strText is the value you are getting from asset
Can you try with below code, i did not use asset instead i stored values in string,
then I retrieved THE AND from string using substring and stored in variables.
and last i appended those variables in pattern.
@Prasanth. Just explaining how i am using ur code. Confirm its right.
I am getting these asset values in - for loop.
Inside loop i have added your code.
In Test1 variable contains = “AND TESTING IN TEST”
I have used the above code its not working, correct me if i have done anything wrong here
Expected result is - TESTING IN TEST
- have you change strText to Test1.
2.and Test1 is your input string or the value fetched from asset?
and also is the expected result is AND|TESTING|IN|TEST
the asset value is like AND,TESTING,IN,TEST ?
@Prasanth your code works, i did a minor coding err from my side. Thanks for your effort.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.