<p>Vanitygen has a regex option, for generating addresses that match an arbitrary regular expression.  I think that</p>

<p><code>vanitygen -r '^1Bit.*Bit$'</code></p>

<p>would work.</p>

<p>Note that it will not be able to estimate the expected time that would be required.</p>

CC BY-SA 3.0
2016-02-18T18:10:18.257Z
2016-02-18T18:10:18.257Z
Nate Eldredge
<p>I want generate a unique Bitcoin address with <code>vanitygen</code> that has both a given prefix and a given suffix: 
  1Bit******************Bit</p>

<p>How would I be able to achieve that?</p>

CC BY-SA 3.0
2016-02-18T17:38:41.423Z
Out of curiosity, what do you need this for? This could be used maliciously by an attacker trying to replace an address with their own address that has the same first and last few characters, which I hope is not why you're trying to do this.
morsecoder
<vanity-address><vanitygen>
How can one generate a vanity Bitcoin address with both a given prefix and suffix?
LAe
# How can one generate a vanity Bitcoin address with both a given prefix and suffix?

(Asked by: username_0 on 2016-02-18)

I want generate a unique Bitcoin address with `vanitygen` that has both a given prefix and a given suffix:
1Bit\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*Bit

How would I be able to achieve that?

**Tags:** vanity-address, vanitygen

> **Comments:**
> **username_1**: Out of curiosity, what do you need this for? This could be used maliciously by an attacker trying to replace an address with their own address that has the same first and last few characters, which I hope is not why you're trying to do this.  

---

## 1 answers

### Answer by username_2 on 2016-02-18. Score: 4

Vanitygen has a regex option, for generating addresses that match an arbitrary regular expression. I think that

`vanitygen -r '^1Bit.*Bit$'`

would work.

Note that it will not be able to estimate the expected time that would be required.


---

