Fitnesse Get attribute from form label and use for validations

I was able to get the attribute needed from my form label using the discussions below. But when i want to use that number and add it to a validation im having issue with getting more then just the value.

I was able to use the below regex to get the number I want but when I try to use it else where i come out like this $PrElarId->[7849].
Does any one know how to just get the numbers?

|$PrElarId = |get regex |(\d{4})|group |1 |from form title |

Validation

|check | get form title | Loan Request - PrELAR #$PrElarId |

The check comes out like this: "Loan Request - PrELAR #$PrElarId->[7871]" but all i want is: "Loan Request - PrELAR #7871" 

 

community.appian.com/.../fitnesse-how-to-save-a-value-in-a-variable-from-a-task-name-and-form-title
community.appian.com/.../fitnesseforappian-release-v17-3-2---how-to-get-the-title-from-the-form-or-page

  Discussion posts and replies are publicly visible