#include <iostream> /* C++ iostream C++98/11 */
#include <string> /* C++ strings C++98/11 */
#include <boost/regex.hpp>
#include <boost/algorithm/string/find.hpp>/* RegEx Boost */
int main() {
/* Our strings and string forms for the regualr expressions. */
std::string id{"station_RTL-158456_datumi_datumi"};
boost::iterator_range<std::string::const_iterator> firstOccurence = boost::find_nth(id, "_", 0);
boost::iterator_range<std::string::const_iterator> secondOccurence = boost::find_nth(id, "_", 1);
std::string program_id{firstOccurence.end(), secondOccurence.begin()};
std::cout << program_id;
}
ICAjaW5jbHVkZSA8aW9zdHJlYW0+ICAgICAgICAgICAgICAgIC8qIEMrKyBpb3N0cmVhbSAgICAgICAgICAgIEMrKzk4LzExICovCiNpbmNsdWRlIDxzdHJpbmc+ICAgICAgICAgICAgICAgICAgLyogQysrIHN0cmluZ3MgICAgICAgICAgICAgQysrOTgvMTEgKi8KI2luY2x1ZGUgPGJvb3N0L3JlZ2V4LmhwcD4KI2luY2x1ZGUgPGJvb3N0L2FsZ29yaXRobS9zdHJpbmcvZmluZC5ocHA+LyogUmVnRXggICAgICAgICAgICAgICAgICAgQm9vc3QgICovCiAKaW50IG1haW4oKSB7CiAKICAvKiBPdXIgc3RyaW5ncyBhbmQgc3RyaW5nIGZvcm1zIGZvciB0aGUgcmVndWFsciBleHByZXNzaW9ucy4gKi8KICBzdGQ6OnN0cmluZyBpZHsic3RhdGlvbl9SVEwtMTU4NDU2X2RhdHVtaV9kYXR1bWkifTsKICBib29zdDo6aXRlcmF0b3JfcmFuZ2U8c3RkOjpzdHJpbmc6OmNvbnN0X2l0ZXJhdG9yPiBmaXJzdE9jY3VyZW5jZSA9IGJvb3N0OjpmaW5kX250aChpZCwgIl8iLCAwKTsKICBib29zdDo6aXRlcmF0b3JfcmFuZ2U8c3RkOjpzdHJpbmc6OmNvbnN0X2l0ZXJhdG9yPiBzZWNvbmRPY2N1cmVuY2UgPSBib29zdDo6ZmluZF9udGgoaWQsICJfIiwgMSk7CiAgc3RkOjpzdHJpbmcgcHJvZ3JhbV9pZHtmaXJzdE9jY3VyZW5jZS5lbmQoKSwgc2Vjb25kT2NjdXJlbmNlLmJlZ2luKCl9OwogIHN0ZDo6Y291dCA8PCBwcm9ncmFtX2lkOwogCn0=