The cost of x in Rs 200
The cost of x in Eu 10
The cost of y in Rs 10000
if i had this data in text file how can i filter sentences having text like The cost of x in Rs , like if i had 5 sentences with Rs in it, i need to filter the 5 sentences in text file and paste it another file…
i have done similar use case scenario for words using groupby, but i feel the same logic will not apply here… pls help
i have use following code to perform the same, but not working
filteredSentences = String.Join(Environment.NewLine, content.Split(New String() {Environment.NewLine}, StringSplitOptions.None).Where(Function(sentence) sentence.Contains("The cost of x in Rs")))
=> Use Write Text File activity to write filteredSentences back to new notepad file.
instead both codes had worked, but i also used the same syntax, but it did not work… as i have splitted 1st and then applied filter condition… any idea on why my syntax has not worked.