# Perspective Key Event Regex New Line

**URL:** <https://forum.inductiveautomation.com/t/perspective-key-event-regex-new-line/51553>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 2, 2021, 6:01am UTC](https://forum.inductiveautomation.com/t/perspective-key-event-regex-new-line/51553 "2021-10-02T06:01:37Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [October 7, 2021, 4:18pm UTC](https://forum.inductiveautomation.com/t/perspective-key-event-regex-new-line/51553/7 "2021-10-07T16:18:30Z")

</div>

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](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/4/f496dc49ae86ea07d23a53fe2e0ec3193462c408.png)

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-key-event-regex-new-line/51553)._
