I have this code:
phraseSources.ToList().ForEach(i => i.JmdictMeaning ?? );
What I need to do, and I'm not it's possible using LINQ, is to remove all occurrences of a string looking like this:
[see=????????]
Note the ??? is meant to indicate there can be any amount of characters, except "]".
That appear inside of JmDictMeaning. Note there might be one or more of these but they will always start with "[see=" and end with "]"
ToListwill create a copy of a source string list, andForEachwill not modofy the list in-place. So you're "modifying" a copy of a copy of each string.