Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Regex pipe and tabs c++
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//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" ; }
cl.exe
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
edit mode
|
history
|
discussion