title: How to filter out a certain pattern in filter pyspark RDD
body: <p>I have a pyspark sc initialized.   </p>
  
  <pre><code>instance = (data
            .filter(lambda x: len(x) != 0 )
            .filter(lambda x: ('%auth%login%' not in url)
            .map(lambda x: function(x))
            .reduceByKey(lambda x, y: x + y)
  </code></pre>
  
  <p>My goal is to filter out any url that has both <strong>auth</strong> and <strong>login</strong> keywords in it, but they could be in any position of a string. </p>
  
  <p>In sql I could use %auth%login%,  % means any length of string. </p>
  
  <p>How to do it in pyspark syntax easily? </p>
  
  <p>Forgot to mention, there are 'auth' page I do not want to filter out, I only want to filter out auth when login is also in the string</p>
  
  <p>I am not sure why this is flagged as dups, this is RDD not dataframe</p>