Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <boost/regex.hpp>
int main()
{
std::string file_path = "/foo/bar/bunny.obj";
std::string type = "unknown";
boost::regex rx_find_extension("^.*\\.(\\w+)$");
boost::smatch result;
if ( boost::regex_match( file_path, result, rx_find_extension ) )
public class ProductMain {
public boolean executeMain(ResourceHolder resourceholder) {
Log log = BCLogFactory.getLog(ProductMain.class);
CommonPrinter commonPrinter = null;
Statement statement = null;
ResultSet resultSet = null;
try {
String outputileName = resourceHolder.getOutputFileName();
commonPrinter = new CommonPrinter(outputFileName, "UTF-8");
Connection connection = resourceHolder.getConnection();