fork download
  1. object Main extends App {
  2. val filter = """^[\s\S]+?(?=com)""".r
  3. val s = "\nwww.{Google}.comcomxxxcom"
  4. print(filter.findFirstIn(s))
  5. }
Success #stdin #stdout 0.46s 66536KB
stdin
Standard input is empty
stdout
Some(
www.{Google}.)