I would like to change my regex exp.
"(\\s+|^)\\d+(\\s+|$)”
I’d like to check if column contains the digits where the length of digits is between 4 and 8 (the expression presented above works correctly but I cannot specify the length of digits—>range). Spark Scala usage.
I guess that there is a possibility to change above expression to d{4,8} but it does not work appropriately.
May you please help me?