[Gmsh] substring in gmsh script
Олег Рябков
oleg.ryabkov.87 at gmail.com
Fri Nov 25 14:43:45 CET 2016
Dear mesh users and developers.
Given some string (in gmsh script), for example, view name
test = Str( View[0].Name );
which can be printed using:
Printf(test);
I want to get substring of this string, for example first 5 characters of 5
last ones. But i don't see any built-in functions for this purpose. None of
expressions work for me as well.
For example, there is documented syntax
expression:
real |
string |
string ~ { expression }
string [ expression ] |
But test[1] is not working (out of range index). I suppose i don't
understand some differences between lists, strings, char-expressions and
something like that.
Is there any way to do what i want?
--
Best regards, Oleg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20161125/48cc2279/attachment.html>
More information about the gmsh
mailing list