Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: mgajdosikYou can reverse the string using the following syntax and then use strFind on it... this is simple solution that will work for you assuming you have small amount of data...
reversed = ""
i = FIELD.len()
while (i>-1) {
reversed = reversed + ( FIELD.substr(i,1))
i = i-1
}
there is also a python way, which is way nice, but you would have to use python node for that... in python you have rfind function... to reverse string in python you can do
'STRING'[::-1] which will result in 'GNIRTS'