Trim multiple lines to mesh

Hello, 

So I am wondering if it's possible to trim all lines to the mesh as the picture shows or if I have to go the intersection way and manually extend every line to the intersection point. Thankful for answers. 

red is a mesh and yellow are the lines I want to trim.