Easy Solution in java using Regex ✅✅
Code\n\nimport java.util.regex.Pattern;\nimport java.util.regex.Matcher;\nclass Solution {\n    public String sortVowels(String s) {\n        char[] chars = s.t
# Code\n```\nimport java.util.regex.Pattern;\nimport java.util.regex.Matcher;\nclass Solution {\n    public String sortVowels(String s) {\n        char[] chars = s.toCharArray();\n        List<Character> vowels = new ArrayList<>();\n        Pattern vowelPattern = Pattern.compile("[aeiouAEIOU]");\n        Matcher matcher = vowelPattern.matcher(s);\n        while (matcher.find()) {\n            char c = matcher.group().charAt(0);\n            vowels.add(c);\n        }\n        Collections.sort(vowels);\n        StringBuilder result = new StringBuilder();\n        int vowelIndex = 0;\n        for (int i = 0; i < chars.length; i++) {\n            if ("aeiouAEIOU".indexOf(chars[i]) != -1) { \n                result.append(vowels.get(vowelIndex));\n                vowelIndex++;\n            }\n            else {\n                result.append(chars[i]);\n            }\n        }\n        return result.toString();\n    }\n}\n```\n# \u2B06\uFE0FPLS UPVOTE IF YOU LIKED MY SOLUTION ;)\u2B06\uFE0F
['String', 'String Matching', 'Java']