Saving levels at runtime

Basically, I’ve got three arrays that I need to write to file. One is Object and the other two are Vector3.
What’s the best way to do this?

2 Options:
A)Do regex magic.
B)Do XML magic.

both are fine
Regex is faster but harder to use
XML is easier but slower then regex