locked
remove everythimg before the first "_" RRS feed

  • Question

  • lets say i have items in my listbox : AIO_AA-BB_2012-05-05_MIC

    I need to remove the 2 first underscolls , and everything before them so the result should be : 2012-05-05_MIC

    any siggestion ? 


    Georges Naffah

    Tuesday, June 5, 2012 11:48 AM

Answers

  • Class Program
    	Private Shared Sub Main(args As String())
    		Dim deviceID As String = "AIO_AA-BB_2012-05-05_MIC"
    		deviceID = deviceID.Remove(0, deviceID.IndexOf("_"C, deviceID.IndexOf("_"C) + 1) + 1)
    	End Sub
    End Class

    This should do.


    Regards, MusicDemon

    Tuesday, June 5, 2012 12:17 PM