# Perspective Barcode Scanner Input: Use multiple regex on same component

**URL:** <https://forum.inductiveautomation.com/t/perspective-barcode-scanner-input-use-multiple-regex-on-same-component/61350>\
**Category:** Ignition\
**Tags:** vision, ignition81, perspective\
**Created:** [June 29, 2022, 1:44pm UTC](https://forum.inductiveautomation.com/t/perspective-barcode-scanner-input-use-multiple-regex-on-same-component/61350 "2022-06-29T13:44:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 29, 2022, 3:44pm UTC](https://forum.inductiveautomation.com/t/perspective-barcode-scanner-input-use-multiple-regex-on-same-component/61350/3 "2022-06-29T15:44:19Z")

</div>

I think you do have you use scripting, yes. If you're using key event scripts to capture, then note that the regex is being run on the frontend, and there's some... weird Javascript quirks as a result:

> [@Perspective Key Event Regex New Line](https://forum.inductiveautomation.com/t/perspective-key-event-regex-new-line/51553/7):
>
> Ugh, you’re right, there is something strange here. It seems that the regex is matching against some string representation of the typed key, not the actual underlying character. A regex like this works when you press enter: .+(Enter) [image]

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-barcode-scanner-input-use-multiple-regex-on-same-component/61350)._
