[PG] 카카오 _ 신규 아이디 추천
https://programmers.co.kr/learn/courses/30/lessons/72410 접근 방법 매우매우 구현 문제라 생각하고 노가다라 생각을 했었다.. 하지만 문제를 풀고 나서 다른 사람들의 코드를 보니 나의 코드는 너무나 미숙했었다. [ 정규식에 대해 알아봐야 할 것 같다. ] Need Know 구현 정규식 다른 사람의 Amazing한 풀이 class Solution { public static String solution(String new_id) { String answer = ""; String temp = new_id.toLowerCase(); temp = temp.replaceAll("[^-_.a-z0-9]",""); temp = temp.replaceAll("[.]{2,}"..
2021.09.18