MultiTech_Visions:
SUBSTITUTE(SUBSTITUTE([OCR Result], “A”, “”), “B”, “”)
Christoph_Bucker:
Thanks for the proposal. I tried this and it works in principal. To be honest I do not like the solution, but it is working.
Yeah, it sucks having to nest 26 SUBSTITUTE()s just to filter out letters, and then there are still special characters to consider. But I think that’s the best we can do with the current functions in AppSheet.
We could REALLY use REGEX, or at least a more powerful SUBSTITUTE() with optional sets of parameters, or something like FileMaker’s FILTER().
[Allow multiple sets of parameters in SUBSTITUTE, like SWITCH(), to avoid nesting multiple times](https://community.appsheet.com/t/allow-multiple-sets-of-parameters-in-substitute-like-switch-to-avoid-nesting-multiple-times/24676) Feature Requests
The SUBSTITUTE() function takes 3 arguments: SUBSTITUTE( template , old-text , new-text ) And when you want to substitute multiple values in the template, you have to nest multiple SUBSTITUTE()'s together: SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBST…
[REGEX() expressions and an optional occurrence parameter for SUBSTITUTE()](https://community.appsheet.com/t/regex-expressions-and-an-optional-occurrence-parameter-for-substitute/28292) Feature Requests
@praveen @tony Is it possible to have powerful expressions like: REGEXMATCH() (returns a TRUE/FALSE) REGEXEXTRACT() (returns TEXT) REGEXREPLACE() (returns TEXT) I’m aware that the EXTRACT() expression can perform alike but at the end this function returns a list and it’s a bit limited in nature. Additionally we need an optional occurrence parameter for the SUBSTITUTE expression which can save us from creating nested SUBSTITUTE expressions where expressions can become cleaner. SUBSTITUTE( t…
Another option is saving the raw value to the sheet, and then using a Google Sheet formula with REGEX to extract the numbers to a new sheet column.
[Text type should not allow the user to type any number or Special Characters](https://community.appsheet.com/t/text-type-should-not-allow-the-user-to-type-any-number-or-special-characters/27739/7) Questions
One other option is using a spreadsheet formula with REGEXMATCH. However, the formula result will not be applied until sync, so the user will not see that they are entering an invalid value. You would have to allow the invalid value, then trigger a delete or notification to the user if the validation failed. [Screen Shot 2020-07-15 at 8.02.59 AM]