How to split text by double pipe in F#?
How to split text by double pipe in F#?
open System
let splitby (text: string) =
text.Split([|"||"|], StringSplitOptions.None)
You can use also another split option: StringSplitOptions.RemoveEmptyEntries
But i also discoved one solution,that too worked fine.
I replaced double pipe(||) by some other symbol i.e.^ and then split by this symbol.
text.Replace("||","^").Split('^')