Regular expressions to parse address fields needed

I am converting a FMPro data file over to Servoy. One of the text fields includes soft carriage returns in an address field. In my Servoy file I have two address fields. On loading the Servoy file I want to determine if the input address field contains a Hex(0B) character and if so add all characters to the left of it to Address1 and the remaining characters to Address2. Can anyone help me out?

var index = stringvalue.indexOf(0,‘\x0B’)

Thanks Jan. It worked for me, but not the first time. The order of the arguments must be reversed. For others that might be following this, the correct syntax is:

var index = stringvalue.indexOf(‘\x0B’,0)