Switch to regex for optArgument.xml editing