lib/job.rb
# extracts apply URL from a blob of text
extracts apply URL from a blob of text
extracts apply URL from a blob of text
def extract_apply_urls(text)
    text.scan(/href="([^"]*)"/)
      .flatten
      .select { |url| url.match?(APPLY_URL_REGEX) }
      .uniq
  end
def extract_apply_urls ( text ) text . scan ( / href="([^"]*)" / ) . flatten . select { | url | url . match? ( APPLY_URL_REGEX ) } . uniq end
extracts apply URL from a blob of text
extracts apply URL from a blob of text
text