i need to create an analysis that need to extract license info from a file. the contents of the file is “A%00B%00C%00D%00-%00A%00B%00C%00D%00%09%00A%00B%00C%00D%00-%00A%00B%00C%00D%00%09%00%09%004%00W%007%00N%00I%004%00I%00-%00L%00Y%00C%00G%00C%00C%00G%00-%00B%00D%00L%003%009%00G%00C%00-%00K%002%00K%00A%00G%00W%00C%00-%00C%00I%007%00H%00P%00Y%001%00%09%00”
I would like the output to look like this:
4W7NI4I-LYCGCCG-BDL39GC-K2KAGWC-CI7HPY1
i tried using the following statement but im getting nowhere with it
(concatenation “” of (matches (regex “[A-Z0-9]”) of (“A%00B%00C%00D%00-%00A%00B%00C%00D%00%09%00A%00B%00C%00D%00-%00A%00B%00C%00D%00%09%00%09%004%00W%007%00N%00I%004%00I%00-%00L%00Y%00C%00G%00C%00C%00G%00-%00B%00D%00L%003%009%00G%00C%00-%00K%002%00K%00A%00G%00W%00C%00-%00C%00I%007%00H%00P%00Y%001%00%09%00”)
Not sure if you have extra characters in the string you wish to ignore as when i ran:
Q: concatenation of (substrings before “%00” of “A%00B%00C%00D%00-%00A%00B%00C%00D%00%09%00A%00B%00C%00D%00-%00A%00B%00C%00D%00%09%00%09%004%00W%007%00N%00I%004%00I%00-%00L%00Y%00C%00G%00C%00C%00G%00-%00B%00D%00L%003%009%00G%00C%00-%00K%002%00K%00A%00G%00W%00C%00-%00C%00I%007%00H%00P%00Y%001%00%09%00” as trimmed string)
If this preceding text is the same across the board you can use the below to get rid of it:
Q: following text of substring “ABCD-ABCDABCD-ABCD” of (concatenation of (substrings before “%00” of “A%00B%00C%00D%00-%00A%00B%00C%00D%00%09%00A%00B%00C%00D%00-%00A%00B%00C%00D%00%09%00%09%004%00W%007%00N%00I%004%00I%00-%00L%00Y%00C%00G%00C%00C%00G%00-%00B%00D%00L%003%009%00G%00C%00-%00K%002%00K%00A%00G%00W%00C%00-%00C%00I%007%00H%00P%00Y%001%00%09%00” as trimmed string))