Category "regexp-replace"

VSCode snippet regex for extracting directory and replacing slashes?

I'm struggling to find a VSCode transformation regex that allows me take a string like this:MyProject.Api/Data/RandomPath/Entities/User.ts and produce:MyProject

R: Match an odd number of repetitions

I would like to match a string like \code, but not when the backslash is escaped. I think that one way of doing this could be matching an odd number of backslas

Aspose.words. Range.replace() ignores timeSpan

I have such problem: A use aspose.words.range.replace with regex with timespan.FromSeconds(7). So I expect that replace method throws exption when it can not fi