티스토리 뷰
반응형
const func = 'hello(world);'
const count = 'COUNT(*)';
const reg = new RegExp(/\([^)]+\)/);
console.log(func.replace(reg, '()'));
console.log(count.replace(reg, '()'));'Dev. > javascript' 카테고리의 다른 글
| [JS] 메소드 오버라이딩 (0) | 2022.04.23 |
|---|---|
| [JS] 객체 배열을 Map으로 변환하기 (0) | 2022.04.23 |
| [JS] Object.assign, spread (0) | 2022.04.20 |
| [JS] 매개변수가 함수인지 확인하기 (0) | 2022.03.23 |
| [JS] for of문에서의 배열 인덱스 사용 (0) | 2021.12.28 |
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- AWS
- Git
- etc
- mysql
- shell
- IntelliJ
- JPA
- Puppeteer
- jQuery
- spring boot
- Java
- Linux
- Database
- terraform
- eureka
- Spring Cloud Config
- RancherDesktop
- hashicorp
- pgloader
- AWS IoT
- 코딩테스트
- Gradle
- postgresql
- react
- Vault
- Node.js
- javascript
- Docker
- JEST
- kotlin
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함