Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Regex pipe and tabs c++
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x86 #include <iostream> #include <string> #include <regex> #include <iomanip> int main () { const std::string rna = "|\t1\t|\t-165.256\t|" ; std::cout << "rna: " << std::quoted(rna) << '\n' ; const std::regex re( "[:punct:][:blank:]([:digit:]+)[:blank:][:punct:][:blank:]([+-]?[:digit:]+.[:digit:]+)[:blank:][:punct:]" ) ; std::smatch match ; if( std::regex_match( rna, match, re ) ) { std::cout << "ok" <<std::endl; } else std::cout << "invalid rna or no start-stop sequence\n" ; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
CommandQueue
Policy class partial specialization inheritance
upper_bound With binary_function Visual Studio 2008 Bug?
timeConversion
get_number_of_threads, windows
Is a Union Member's Destructor Called
Template
narrow_cast
ExtThes_Uniquify
Shadow pointer member variable
Please log in to post a comment.