$ 0 0 Hi Nidhi, Try this this will work for multiple context too. UDF : All values of context for(int i=0;i<var1.length;i++){ if (var1[i].matches("[0-9]+")) result.addValue(var1[i]); else result.addSuppress(); } Br,Manoj