Strona głównaPytania INF.04 › Pytanie 45
INF.04 · pytanie #45

W przedstawionej ramce znajduje się fragment opisu metody compile języka Java wykorzystywanej w kontekście wyrażeń regularnych. Który symbol powinien być użyty, aby znaleźć dopasowanie na końcu tekstu? <br><br> <table><tr><th>Metacharacter</th><th>Description</th></tr><tr><td>|</td><td>Find a match for any one of the patterns separated by | as in: cat|dog|fish</td></tr><tr><td>.</td><td>Find just one instance of any character</td></tr><tr><td>^</td><td>Finds a match as the beginning of a string as in: ^Hello</td></tr><tr><td>$</td><td>Finds a match at the end of the string as in: World$</td></tr><tr><td>\d</td><td>Find a digit</td></tr><tr><td>\s</td><td>Find a whitespace character</td></tr><tr><td>\b</td><td>Find a match at the beginning of a word like this: \bWORD, or at the end of a word like this: WORD\b</td></tr><tr><td>\uxxxx</td><td>Find the Unicode character specified by the hexadecimal number xxxx</td></tr><tr><td colspan="2">Źródło https://www.w3schools.com/java/java_regex.asp dostęp 20.08.2020</td></tr></table>

Kliknij odpowiedź, którą uważasz za poprawną.