일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Props
- 기준
- nextJS
- web
- HTML
- error
- graphQL
- bitcoin
- solidity
- blockchain
- CSS
- JavaScript
- REACT
- SSR
- evm
- hardhat
- Ethereum
- middleware
- built in object
- 삶
- Interface
- typeScript
- node.js
- tailwindcss
- concept
- express.js
- API
- CLASS
- useState
- Redux
- Today
- Total
목록regexp (2)
ReasonJun
The code you provided demonstrates the usage of regular expressions in JavaScript to match and manipulate text based on specific patterns. Let's go through the code and understand its functionality: const str = `...`; // The text content to be matched and manipulated console.log(str.match(/^h.../gm)); // Matches strings starting with 'h' followed by any three characters. console.log(str.match(/\..
Regular expressions, often referred to as regex or regexp, are powerful tools for pattern matching and manipulating text in various programming languages, including JavaScript. A regular expression is a sequence of characters that defines a search pattern. It consists of a combination of ordinary characters and special characters (metacharacters) that have special meaning within the pattern. // ..