Can anyone tell me how I would replace entire strings if they contain partial strings. As a basic example, in my search results, if a URL contains the word "homework", I would like to replace the entire URL with just "Homework", if it contains "learn", then "Learning" and so on. I have tried the search below a number of ways and can't seem to get it to work the way I need. | eval domain = if(cs_host = "*homework*", "homework", if(cs_host = "*learn*", "learning",cs_host)) Domain Count Homework 2 Learning 5 etc Thanks
... View more