java remove non numeric characters from string

java remove non numeric characters from string
/**
 * @author lautturi.com 
 * Java example: remove all non digit characters in java string
 */

import java.util.*;

public class Lautturi {

	public static void main(String[] args) {

		String str = "hello 123 world 1auttur12456 ";
		str = str.replaceAll("\\D", "");
		System.out.println(str);
	}
}
So‮u‬rce:www.lautturi.com

output:

123112456
Created Time:2017-09-28 17:05:14  Author:lautturi