Hi Corobori,
Use below code.
C#
protected void Page_Load(object sender, EventArgs e)
{
string vOpciones = "17615.3_999999#sin-";
string splitAtPipe = vOpciones.Split('-')[0];
char[] characters = { '.', '_', '#' };
string[] p = splitAtPipe.Split(characters, StringSplitOptions.RemoveEmptyEntries);
}
VB.Net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim vOpciones As String = "17615.3_999999#sin-"
Dim splitAtPipe As String = vOpciones.Split("-"c)(0)
Dim characters As Char() = {"."c, "_"c, "#"c}
Dim p As String() = splitAtPipe.Split(characters, StringSplitOptions.RemoveEmptyEntries)
End Sub
Screenshot