Properties
Category
English
Similar Topics
Statistics
Comments
14
Participants
3
Subscribers
3
Votes
1
Views
792
Share
Answered
How to delete all inserted spaces in a text string ?
The text string is created when a student enter an expression in a input box.
I then want to get GeoGebra to check if the string matches another string.
In order to not have to take all space combinations between parts of the expression into account, I would rather just have all the space between signs, numbers and letters deleted.
How to do that in the easiest way ?
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2023 International GeoGebra Institute
parse structure: see attachment.
but sorry: for me the added value is not clear.
Maybe the best one is to use the TextToUnicode command, and parse their input as
32 is the Unicode value for blank space.
Please see https://wiki.geogebra.org/e...
Honestly text matching is rarely a good way to assess correctness of entries, because there are many different possibilities when entering a mathematical expression (fractions vs decimal values, just to say one).
Wenn nicht die Struktur, sondern nur das Ergebnis von Interesse ist, verwenden Sie: ParseToNumber()
(alternative für Struktur folgt)
parse structure: see attachment.
but sorry: for me the added value is not clear.
To rami: Thank you very much, I will look into your script and try to understand how it works.
A completely different approach.
some hints
I am always open for your suggestions and questions.
Comments have been locked on this page!