# RegEx for "\*"+"blank space" at the beginning of a segment

**URL:** <https://forum.xbench.net/t/regex-for-blank-space-at-the-beginning-of-a-segment/1046>\
**Category:** Technical Support\
**Created:** [August 14, 2023, 1:12pm UTC](https://forum.xbench.net/t/regex-for-blank-space-at-the-beginning-of-a-segment/1046 "2023-08-14T13:12:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_RWS](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/miguel_rws/32/300_2.png) [@Miguel\_RWS](https://forum.xbench.net/u/Miguel_RWS)\
**Post date:** [August 14, 2023, 1:12pm UTC](https://forum.xbench.net/t/regex-for-blank-space-at-the-beginning-of-a-segment/1046/1 "2023-08-14T13:12:52Z")

</div>

Hi Xbench team,

Hope anyone can help me. Is there any way to search for segments in the target that do not contain “_"+“blank space” at the beginning of the segment?  
We need now to have always "_”+“blank space” in the target. I have tried so far with

PowerSearch  
Target: \*[:space]

Example:  
Wrong: \*Der Kunde…  
Correct: \* Der Kunde…

Best regards,  
Miguel

---

<div class="post-metadata">

**Author:** ![omartin](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/omartin/32/82_2.png) [@omartin](https://forum.xbench.net/u/omartin)\
**Post date:** [August 14, 2023, 1:35pm UTC](https://forum.xbench.net/t/regex-for-blank-space-at-the-beginning-of-a-segment/1046/2 "2023-08-14T13:35:28Z")

</div>

Even though the following search should work, it will find many false results:  
Target: `-^\*[:space:]`  
Search mode: Regular Expressions

If the source contains \* + blank space at the beginning and target should start in the same way, the following search would be more adequate:

Source: `^\*[:space:]`  
Target: `-^\*[:space:]`  
Search mode: Regular Expressions  
PowerSearch: On.

---

<div class="post-metadata">

**Author:** ![Miguel\_RWS](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/miguel_rws/32/300_2.png) [@Miguel\_RWS](https://forum.xbench.net/u/Miguel_RWS)\
**Post date:** [August 14, 2023, 2:06pm UTC](https://forum.xbench.net/t/regex-for-blank-space-at-the-beginning-of-a-segment/1046/3 "2023-08-14T14:06:04Z")

</div>

That was amazing fast. Tried and worked. Thank you so much. Created also a RegEx for “#”.
