in reply to split function using multiple delimiters

Update: Ignore this post, i was reading the requirement the wrong way around.

While this does not really answer the question asked: If the example data matches your real-life data, you might try XML::Simple, since your data looks very much like XML.

BREW /very/strong/coffee HTTP/1.1
Host: goodmorning.example.com

418 I'm a teapot
  • Comment on Re: split function using multiple delimiters