-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Open
Labels
Needs-TriageFor issues raised to be triaged and prioritized by internal Microsoft teamsFor issues raised to be triaged and prioritized by internal Microsoft teams
Description
Description of the new feature / enhancement
Please enable Boost Replacement String Conditionals as described here (https://www.regular-expressions.info/replaceconditional.html).
Scenario when this would be used?
I have files that I download and then need to reformat the date string such as "Mar_20_2025" to "2025_03_20". I would like to conditionally search for each month name and replace it with the number. Rather than a general search string "(\w{3})(\d{2})(\d{2})" that couldn't replace the month, I could then do "(Jan)?(Feb)?(Mar)?(Apr)?(May)?(Jun)?(Jul)?(Aug)?(Sep)?(Oct)?(Nov)?(Dec)?(\d{2})(\d{2})" with replacement string "{14}(?101)(?202)(?303)(?404)(?505)(?606)(?707)(?808)(?909)(?{10}10)(?{11}11)(?{12}12){13}" to get the desired formatting.
Supporting information
No response
Metadata
Metadata
Assignees
Labels
Needs-TriageFor issues raised to be triaged and prioritized by internal Microsoft teamsFor issues raised to be triaged and prioritized by internal Microsoft teams