string comaprision

shafee212

Member
Any command in progress for string comparision

for eg

a = "inv inv1" .
b = "invinv1 ".

bot strings are same , but have uncommon spaces .

any progress command to compare them .(result is true as both are same)

Thanks in advance
 
Technically, they really are different...

However, if you want to just remove embedded spaces:

Code:
if replace(a," ","") = replace(b," ","") then do: 
...
 
Yes, there are tools, but you will need to define what you want to consider same and different and construct a routine based on that. Look at MATCHES and consider versions of the REPLACE example above for eliminating "noise" ... tracking or not tracking what you replaced depending on your purpose.
 
Back
Top