You are looking for a negative look-behind assertion. The bare regular expression looks like this:
when used on jthomps testing web site and matches only the slashes you wish to split on. In C++ code that would look like this for QRegularExpression:
Qt Code:
QRegularExpression re("(?<!\\\\)/");To copy to clipboard, switch view to plain text mode
Bookmarks