std::regex_traits<CharT>::lookup_collatename (3) - Linux Man Pages
template< class ForwardIt >
string_type lookup_collatename( ForwardIt first, ForwardIt last ) const;
If the character sequence [first, last) represents the name of a valid collating element in the currently imbued locale, returns the name of that collating element. Otherwise, returns an empty string.
Collating elements are the symbols found in POSIX regular expressions between [. and .]. For example, [.a.] matches the character a in the C locale. [.tilde.] matches the character ~ in the C locale as well. [.ch.] matches the digraph ch in Czech locale, but generates std::regex_error with error code std::regex_constants::error_collate in most other locales.
ForwardIt must meet the requirements of LegacyForwardIterator.
The representation of the named collating element as a character string.
// Run this code