How can I write a regular expression to match URLs that contain emojis? The regex should match ordinary alphanumeric URLs along with URLs containing emojis in the domain nam
Regex to check URL contains Alphabets
String alphabets= "(.*[a-zA-Z].*)";
Regex to check URL contains Numbers
String numbers= "(.*[0-9].*)";
Regex to check URL contains special characters
String special = "(.*[!,@,$,%,^,&,*,#,~,`,{,},%,|,(,),-,_,=,+,[,],;,:,',\",,,<,.,>,/,?].*$)";
Regex to check URL contains alphanumeric and emojis
String emo="^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&()-*/!+=])(?=\\S+$).{size,}$";
Adjust size and change the special characters as per your need.