import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.regex.*;

class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String rx = "\\B(?<!\\d)\\d\\b";
		System.out.println("I am the number1".replaceAll(rx, ""));
		// => I am the number
		System.out.println("I am the number11".replaceAll(rx, "")); 
		// => I am the number11
		System.out.println("I am 4the number1 @#@%$grtuy".replaceAll(rx, "")); 
		// => I am 4the number @#@%$grtuy
		System.out.println("I am number1 1 and you number2 2".replaceAll(rx, ""));
		// => I am number 1 and you number 2
	}
}