I have a field which contains both numeric and non-numeric values. I need to output the numeric value and change the non-numeric value to some number like 9999999.
I tried is_valid_in() and match_regex(), but none of them are working.
For example if i use the below, my output will be 99 and not the input numeric value. Same result if i use is_valid_int().
Normally when you resolve something after asking the question you post the solution so that others can benefit. Please post the solution (even if it makes you look a bit silly).