Created
April 21, 2022 16:08
-
-
Save repen/026c02fc670801ba51d69772d938250c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1 вариант разбить на 3 группы. Далее во 2 группе | |
// удалить ненужные символы методом replaceAll пример: 'world"'.replaceAll('"', "") | |
// ^(.*?) (added.*?\".*?\").*?(IP.*)$ | |
// | |
// 2 вариант разбить на 4 группы. Группы 2 и 3 конкатенировать. | |
// ^(.*?) (added.*?)\\?\"(.*?)\\?\".*?(IP.*)$ | |
// | |
// 3 вариант перед обработкой удалить не нужные символы методом replaceAll и применить регулярку | |
// ^(.*?) (added.*?)\(.*?(IP.*)$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment