Java RegEx заполните его полем [закрыто] ⇐ JAVA
-
Гость
Java RegEx заполните его полем [закрыто]
I have 100 RegEx masks like:
(?.) - (?Start|End) (?\w) - (?[0-9-]{10})(?: - (?< result>.*))?
to search for something, when a RegEx finds something I extract the data to compose another (closing) sentence to search for
"ETL_LOAD - End Foo - 2024-03-09"
When searching for the closure I cannot use RegEx because it could find me another opening with different data.
So I need in java to compose a sentence by replacing the data I retrieved inside the RegEx mask. There is a way in java?
Thank You
Источник: https://stackoverflow.com/questions/781 ... with-field
I have 100 RegEx masks like:
(?.) - (?Start|End) (?\w) - (?[0-9-]{10})(?: - (?< result>.*))?
to search for something, when a RegEx finds something I extract the data to compose another (closing) sentence to search for
"ETL_LOAD - End Foo - 2024-03-09"
When searching for the closure I cannot use RegEx because it could find me another opening with different data.
So I need in java to compose a sentence by replacing the data I retrieved inside the RegEx mask. There is a way in java?
Thank You
Источник: https://stackoverflow.com/questions/781 ... with-field
Мобильная версия