マルチバイトではないこと前提に
text = "1234567890//asdfg"
出力 1234567890

argument0 = string_pos("//", text);
text = string_delete(text, argument0, string_length(text)-argument0+1);
または
//text = string_copy(text, 1, argument0-1);