# REGEX String (rather than comma separated list)

**URL:** <https://forum.bubble.io/t/regex-string-rather-than-comma-separated-list/91498>\
**Category:** Need help\
**Created:** [May 13, 2020, 7:21am UTC](https://forum.bubble.io/t/regex-string-rather-than-comma-separated-list/91498 "2020-05-13T07:21:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![morgan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/morgan/32/54207_2.png) [@morgan](https://forum.bubble.io/u/morgan)\
**Post date:** [May 13, 2020, 7:21am UTC](https://forum.bubble.io/t/regex-string-rather-than-comma-separated-list/91498/1 "2020-05-13T07:21:19Z")

</div>

I am extracting the first letters of a string of words successfully using the following expression:

\b[a-zA-Z]

It returns the first letters of every word from a sentence but they are a list separated by commas. For example:

**"Dr Peter Jones" will extract to “D, P, J” when I actually want “DPJ” (not a comma separated list)**

I can achieve with find and replace removing the comma and space but this is a sluggish and seemingly inefficient way to so it.

Is there a change I can make to the REGEX to achieve this? Alternatively something more efficient?

Thanks

---

<div class="post-metadata">

**Author:** ![ryan21](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ryan21/32/66762_2.png) [@ryan21](https://forum.bubble.io/u/ryan21)\
**Post date:** [July 20, 2020, 2:54am UTC](https://forum.bubble.io/t/regex-string-rather-than-comma-separated-list/91498/2 "2020-07-20T02:54:23Z")

</div>

Have you checked out [regex101.com](http://regex101.com)? It’s awesome. They probably have exactly what you need.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [July 22, 2020, 7:26am UTC](https://forum.bubble.io/t/regex-string-rather-than-comma-separated-list/91498/3 "2020-07-22T07:26:42Z")

</div>

Closed on July 22, 2020, 7:26am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
