src/tool-autostem.cpp
void Tool_autostem::removeStem2(HumdrumFile& infile, int row, int col) {
	HumRegex hre;
	hre.replaceDestructive(infile.token(row, col), "", "[\\\\/]x(?!x)", "g");
	hre.replaceDestructive(infile.token(row, col), "", "[\\\\/](?!x)", "g");
}
//////////////////////////////
//
// Tool_autostem::removeStem2 -- remove stem and any single x after the stem.
//
:removeStem2 -- remove stem and any single x after the stem.
: removeStem2 -- remove stem and any single x after the stem .
void Tool_autostem::removeStem2(HumdrumFile& infile, int row, int col) {
	HumRegex hre;
	hre.replaceDestructive(infile.token(row, col), "", "[\\\\/]x(?!x)", "g");
	hre.replaceDestructive(infile.token(row, col), "", "[\\\\/](?!x)", "g");
}
void Tool_autostem :: removeStem2 ( HumdrumFile & infile , int row , int col ) { HumRegex hre ; hre . replaceDestructive ( infile . token ( row , col ) , " " , " \\ \\ " , " " ) ; hre . replaceDestructive ( infile . token ( row , col ) , " " , " \\ \\ " , " " ) ; }
Tool_autostem::removeStem2 -- remove stem and any single x after the stem.
Tool_autostem :: removeStem2 -- remove stem and any single x after the stem .