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
I have 100 RegEx masks like: [code]Service - (?Start|End) (?\w*) - (?[0-9-]{10})(?: - (?.*))? [/code] to search for something, when a RegEx finds something I extract the data to compose another (closing) sentence to search for [code]Service - End Foo - 2024-03-09 [/code] 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
I have 100 RegEx masks like:
Service - (?Start|End) (?\w*) - (? {10})(?: - (?.*))?
to search for something, when a RegEx finds something I extract the data to compose another (closing) sentence to search for
Service - End Foo - 2024-03-09
Я попытался отладить это как можно лучше, и следовал документации MDN в меру своих возможностей.
Я не верю, что это проблема спасения символа, как указано здесь. Regexp с .exec не работает
Что я пытаюсь сделать? /> В чем проблема? : шаблон режима...
Я попытался отладить это как можно лучше, и следовал документации MDN в меру своих возможностей.
Я не верю, что это проблема спасения символа, как указано здесь. Regexp с .exec не работает
Что я пытаюсь сделать? /> В чем проблема? : шаблон режима...