Commit 69bf87a2 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

vtkExodusFileSeriesReader: update regex

update regex for fixing #19056 and #19202 at the same time.
parent 809ca595
......@@ -244,7 +244,7 @@ void vtkExodusFileSeriesReader::FindRestartedResults()
// The `e` in the above pattern can be any of exodus supported extensions e.g.
// exo, ex2, etc. Hence we keep the regex generic (ref: paraview/paraview#19056,
// paraview/paraview#19202).
vtksys::RegularExpression regEx("^([^\\.]*\\.[a-zA-Z0-9]+)(-s.[0-9]+)?(\\.[0-9]+\\.[0-9]+)?$");
vtksys::RegularExpression regEx("^(.*\\.[eg][^-.]*)(-s.[0-9]+)?(\\.[0-9]+\\.[0-9]+)?$");
if (!regEx.find(baseName))
// Filename does not follow convention. Just use it.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment