Guest User

Untitled

a guest
Jun 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. c158.4n;-94.72
  2.  
  3. c158n;-94
  4.  
  5. QRegExp exp("c(\d+)([\.]?)([\d]?)(n)(;)(-)(\d+)([\.]?)([\d]?)");
  6. if (exp.exactMatch(m_string)) {
  7. qDebug() << exp.cap(1);
  8. }
  9.  
  10. QRegExp exp("c(\d+)([.]?)([\d]?)(n)(;)(-)(\d+)([.]?)([\d]?)");
  11. if (exp.exactMatch(m_string)) {
  12. qDebug() << exp.cap(1);
  13. }
Add Comment
Please, Sign In to add comment