public static void Main()
string content = "Kode OTP anda adalah: 260168";
var otpArr = content.Split(':');
int otp = Convert.ToInt32(otpArr[1].Trim());
Console.WriteLine(Convert.ToInt32(content.Split(':')[1].Trim()));
string msg = @"Gagal untuk Release Order 306852^0^0 dengan error Gagal create PO Line untuk SO BTO Order Num 306852 Line 1 Release 1 dengan error Gagal create PO Line dengan message Unit Cost yang dimasukkan melebihi batas kewajaran (Nilai Rata-Rata Persediaan di cabang senilai 1818.90200 + 100%), mohon periksa kembali atau konfirmasi Unit Price Bypass!
at Epicor.Customization.Bpm.BO.UpdatePreProcessingDirective_FPTP093_ValidateUnitPriceAvgCost_2E396F58A8804856979D8BC9540E647D.A001_CustomCodeAction()";
string SysRevIDHex = "0x00000000384BD4B3";
int SysRevIDInt = Convert.ToInt32(SysRevIDHex, 16);
Console.WriteLine(SysRevIDInt);
string toAddressList = "juari@samator.com;masdju@gmail.com";
var xxx = toAddressList.Split(';');
foreach (string toAddresssItem in toAddressList.Split(';'))
Console.WriteLine($"toAddresssItem:{toAddresssItem}");
char[] charsToTrim1 = { '(', ')' };
string whereClause = "((Customer_CustID = N'100033') and (Calculated_ContactPhoneNum LIKE N'%6287758580789%'))";
whereClause = whereClause.Trim(charsToTrim1);
Console.WriteLine(whereClause);
string[] whereClauseArr = whereClause.Split("and");
foreach (string item in whereClauseArr)
itemWhere = itemWhere.Trim(charsToTrim1);
Console.WriteLine(itemWhere);
Console.WriteLine("---------------------------");
string[] authGroups = new String[0];
Console.WriteLine($"{authGroups.Length}");
string authGroupsStr = "AAA~BBB~CCC~DDD~EEE";
authGroups = authGroupsStr.Split('~');
Console.WriteLine($"{authGroups.Length}");
Console.WriteLine($"{authGroups[4]}");