hi,
aku ade prob keje ni. da tny senior pun die xtau. skrg ni aku de prob ttg regular expression. aku tgk die convert regular expression tu into hexadecimal.. aku xtau camne cara die convert...
ni contoh die...
// Pre-compiled regular expression '^[0-9a-zA-Z\r\n\~\`\!\@\#\$\^\&\*\(\)\[\]\{\}\:\,\.\?\/\-\\\_\=\'\| ]+$'
private static char[] customAllowedCharacterPatternInstructions =
{
0x007c, 0x0000, 0x0058, 0x005e, 0x0000, 0x0003, 0x005b,
0x0020, 0x0043, 0x0030, 0x0039, 0x0061, 0x007a, 0x0041,
0x005a, 0x000d, 0x000d, 0x000a, 0x000a, 0x007e, 0x007e,
0x0060, 0x0060, 0x0021, 0x0021, 0x0040, 0x0040, 0x0023,
0x0023, 0x0024, 0x0024, 0x005e, 0x005e, 0x0026, 0x0026,
0x002a, 0x002a, 0x0028, 0x0028, 0x0029, 0x0029, 0x005b,
0x005b, 0x005d, 0x005d, 0x007b, 0x007b, 0x007d, 0x007d,
0x003a, 0x003a, 0x002c, 0x002c, 0x002e, 0x002e, 0x003f,
0x003f, 0x002f, 0x002f, 0x002d, 0x002d, 0x005c, 0x005c,
0x005f, 0x005f, 0x003d, 0x003d, 0x0027, 0x0027, 0x007c,
0x007c, 0x0020, 0x0020, 0x007c, 0x0000, 0x0006, 0x0047,
0x0000, 0xffba, 0x007c, 0x0000, 0x0003, 0x004e, 0x0000,
0x0003, 0x0024, 0x0000, 0x0003, 0x0045, 0x0000, 0x0000,
};
bila aku test convert RE to hexadecimal based on RE yg kat atas tu gune unicode table, xjadi pun mcm bentuk ni.
anyone can help how die leh dapat bentuk HEXADECIMAL mcm tu daripada RE yg kat atas tu? |