# Perspective BarcodeScannerInput end character

**URL:** <https://forum.inductiveautomation.com/t/perspective-barcodescannerinput-end-character/89808>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [May 2, 2024, 8:51am UTC](https://forum.inductiveautomation.com/t/perspective-barcodescannerinput-end-character/89808 "2024-05-02T08:51:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [May 2, 2024, 8:51am UTC](https://forum.inductiveautomation.com/t/perspective-barcodescannerinput-end-character/89808/1 "2024-05-02T08:51:24Z")

</div>

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
