codestates / codestates/LearnRegex
[๐พ ErrorLog] ์ ๊ทํํ์ exec ๋ฌดํ๋ฃจํ
Aperta
@shleecloud ci sta giร lavorando.
Dal 7/12/2021.
ErrorLog
- Lingua principale
- JavaScript
- Stelle
- 2
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
์ด๋ค ์๋ฌ์ธ๊ฐ?
- ์ฝ๋ ๊ตฌ์ฑ ์ค ํน์ ์ ๊ทํํ์์์ exec๋ฅผ ๋ฌดํํ ์คํํ๊ฒ ๋ง๋๋ ๊ฒฝ์ฐ ์์ธ์ฒ๋ฆฌ๋ฅผ ๋ชปํ์
- ์๋ฅผ๋ค์ด, ์
๋ ฅ๋ ์ ๊ทํํ์์ด
.*์ผ ๊ฒฝ์ฐ, 1๋ฒ ๊ฒ์ํ ํ ๋ค์ ๊ฒฐ๊ณผ๊ฐ ๊ฐ์ฅ ๋ง์ง๋ง ์ธ๋ฑ์ค๋ฅผ ๊ฐ๋ฆฌํด
๊ทธ ์ํ์์ ๋ค์ while๋ฌธ์ผ๋ก ๋์์ exec๋ฅผ ์ํ
*๋ฌธ์๋ ๊ฒ์ ๊ฒฐ๊ณผ๊ฐ ์์ด๋ ๊ฒฐ๊ณผ๊ฐ์ ํฌํจ
๋ฌดํ๋ฃจํ๊ฐ ๋ง๋ค์ด์ง
while ((matchArray = myRegex.exec(testCase)) !== null) {
console.log('test');
lastIndex = matchArray.index;
highlightedTestCase += data.testCase.substring(startIndex, lastIndex);
highlightedTestCase += "<span class='found'>" + matchArray[0] + '</span>';
startIndex = myRegex.lastIndex;
// result = matchArray[0];
}
highlightedTestCase += data.testCase.substring(startIndex, data.testCase.length);
// return result;
};
์๋ฌ ๋ฉ์์ง

์๋ฌ ํด๊ฒฐ ๋ฐฉ๋ฒ
- testcase์ ๊ธธ์ด๋ฅผ ํ์ธ
- ๊ฐ์ฅ ๋ง์ง๋ง ์ธ๋ฑ์ค์ผ ๊ฒฝ์ฐ, ํน์ ๋ฌธ์๋ก ๋๋๋ ์ ๊ทํํ์์ ์์ธ์ฒ๋ฆฌ
*,?
์๋ฌ ํด๊ฒฐ์ ์ํด ์ฐธ๊ณ ํ ๋ ํผ๋ฐ์ค ๋งํฌ
*
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu โ evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non รจ ancora stata valutata.