Skip to content
Snippets Groups Projects
Commit c6cdc39e authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Fix regex for eigenvalues with exponents.

parent a171a96e
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ namespace Nektar ...@@ -51,7 +51,7 @@ namespace Nektar
// Set up the regular expression. This (optionally) matches a variable // Set up the regular expression. This (optionally) matches a variable
// name if it exists: first field is variable name, second field is L2 // name if it exists: first field is variable name, second field is L2
// error. // error.
std::string fp = "([+-]?\\d*\\.?\\d*)"; std::string fp = "([+-]?\\d*\\.?\\d*(e[+-]\\d*)?)";
m_regex = "^EV:\\s*\\d*\\s*" + fp + "\\s*" + fp + "\\s*.*"; m_regex = "^EV:\\s*\\d*\\s*" + fp + "\\s*" + fp + "\\s*.*";
// Find the number of iterations to match against. // Find the number of iterations to match against.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment