# Does anyone know a cleanup rule that can help get the username out of the title?

**URL:** <https://community.dynatrace.com/t/does-anyone-know-a-cleanup-rule-that-can-help-get-the-username-out-of-the-title/18735>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, user-sessions\
**Created:** [December 6, 2018, 5:08pm UTC](https://community.dynatrace.com/t/does-anyone-know-a-cleanup-rule-that-can-help-get-the-username-out-of-the-title/18735 "2018-12-06T17:08:11Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![adam\_sjoerdsma](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/adam_sjoerdsma/32/15312_2.png) [@adam\_sjoerdsma](https://community.dynatrace.com/u/adam_sjoerdsma)\
**Post date:** [December 6, 2018, 5:08pm UTC](https://community.dynatrace.com/t/does-anyone-know-a-cleanup-rule-that-can-help-get-the-username-out-of-the-title/18735/1 "2018-12-06T17:08:11Z")

</div>

Hi team,

I have an application that I am trying to get the usernames out of the \<title\> tag.

I am using the **JavaScript variable** expression type with the “ **docment.title** ” variable. this results in grabbing page titles that have the username at the end.

**Agile Product Lifecycle Management - Welcome , INCDSYPRD01**

**INCDSYPRD01** is an example of the usernames I am trying to grab.

I tried a few different times at getting just the username, but I admit I am not the greatest with Regex.

Does anyone have a cleanup rule that might work at just getting the username?

Thanks,

Adam Sjoerdsma

---

_[View the full topic](https://community.dynatrace.com/t/does-anyone-know-a-cleanup-rule-that-can-help-get-the-username-out-of-the-title/18735)._
