You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason this leads to "Paprika-Zwiebelgemüse (J)" being turned into "Paprika-Zwiebelgemüs)" and not "Paprika-Zwiebelgemüse" as expected.
When I use the native String API (.replacingOccurrences(of: #" (\((?:[A-N]\d?(?:, )?)+\))"#, with: "", options: .regularExpression)), it works like it should.
Is this a bug in Regex or am I doing something wrong? This is on iOS in case that's relevant.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to remove the contents of a string matching the following regex:
(\((?:[A-N]\d?(?:, )?)+\))
.The idea is to remove these allergen-notices from a string like this:
I tried the following:
For some reason this leads to "Paprika-Zwiebelgemüse (J)" being turned into "Paprika-Zwiebelgemüs)" and not "Paprika-Zwiebelgemüse" as expected.
When I use the native String API (
.replacingOccurrences(of: #" (\((?:[A-N]\d?(?:, )?)+\))"#, with: "", options: .regularExpression)
), it works like it should.Is this a bug in Regex or am I doing something wrong? This is on iOS in case that's relevant.
Thanks!
The text was updated successfully, but these errors were encountered: