<p>Can someone show me a regex to select <strong>#OnlinePopup_AFE53E2CACBF4D8196E6360D4DDB6B70</strong> its okay to assume <code>#OnlinePopup</code></p>

<pre><code>~DCTM~dctm://aicpcudev/37004e1f8000219e?DMS_OBJECT_SPEC=RELATION_ID#OnlinePopup_AFE53E2CACBF4D8196E6360D4DDB6B70_11472026_1214836152225_6455280574472127786
</code></pre>

NB: The following is .NET Regex syntax, modify for your flavour.
The following:
```
```
#[^_]+_[^_]+
```
```
will match:
Hash
One or more characters until an underscore
Underscore
One or more characters until an underscore
If the first bit is constant, and you want to be more specific you could use:
```
```
#OnlinePopup_[A-F0-9]+
```
```
This will match
OnlinePopup_ (exactly)
One or more hex characters until a non Hex character