What I would like to to is to create a virtual column in AppSheet called “IMEI” with an expression that extracts a specific part of this field to get the IMEI number, which in this example would be the one shown in red: 123456789
I assume some type of Regex expression will do the job?
Regex is not supported in AppSheet. AppSheet does have EXTRACT… functions but I don’t think any of those will work in this case.
I would use the SPLIT and INDEX functions. The idea is to split on the text on “IMEI:”. If your value is always the same length of numbers then you can use the LEFT function to get that value. Otherwise, split again on the “;” and get the first item with Index.
So…if the value is a known length of 9 digits then:
Without changing the subjet of the OP, have you tried using INDEX() and SPLIT() to parse data from a PDF417? It should work almost the same basically, with a bunch of tags in this case
Excellent solution, I used the variable length flavor. It beats having to do a Regexextract formula in sheets and read the column in as read only (which is a workaround if you want to do it in sheets).