stringpatterncompare

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Artificial Intelligence
Introduced first in SolidGeometry 5.4, Creation date: 2023-11-30, Last change: 2025-09-15

compares strings including variable strings



See Also: , XPSGPS

Example Illustration

 missing image of stringpatterncompare(pattern,txt)

Syntax

PAR=stringpatterncompare(pattern,txt)

Input Parameter

pattern: pattern such as "move $A from $B to $C"
txt: text to analyze such as "move A from B to C"

Output Parameter

PAR: List of parameters

Examples


stringpatterncompare("move A from B to C", "move A from B to C") % identical
stringpatterncompare("move A from B to C", "move X from Y to C") % different
stringpatterncompare("move $A from $B to C", "move X from Y to C") % identical
stringpatterncompare("move $A from $B to $C", "move Tim from work to Home") % identical
stringpatterncompare("move $A from $B to $C", "move $A from work to Home") % empty results




Copyright 2023-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21