Perspective BarcodeScannerInput end character

I have to read barcodes with a Zebra reader and I just know that those barcodes start with L- and that Zebra adds CR to the end of the code - text length is not known. I've tried to use the BarcodeScannerInput component in two ways:

  • prefix+suffix by setting prefix to L- and suffix to CR - the only way to set suffix to CR was to add a button whose script sets suffix to \r programmatically (tried also \n and any combination of \r and \n)
  • regex set to L-([\w]+)$

Neither of them worked for me. Any suggestion?
Thanks in advance, regards