rescue right number(a, b)


Returns a string that is based on a but has been reduced to length b, keeping the text after the rightmost number (not digit!). If the right part exceeds the maximum length it will be truncated to it.

Description of Parameters

Parameter

Description

a

Value.

b

Length.

Examples

Parameter a

Parameter b

Result

Very very long streetname

10

Very very

Very very long streetname 127 b

20

Very very long 127 b

Very very long streetname 127 b

2

12

1234567890

5

12345

Hint: The second result (string of length 20) is a concatenation of the 5 'rescued' characters 127 b (text after the rightmost number 127) and (filled from the left) the 15 characters beginning at the very left of the original text.