# Surrogate pattern for key generator

**URL:** <https://discourse.jabref.org/t/surrogate-pattern-for-key-generator/487>\
**Category:** Help\
**Created:** [March 3, 2017, 1:36pm UTC](https://discourse.jabref.org/t/surrogate-pattern-for-key-generator/487 "2017-03-03T13:36:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![buhtz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/buhtz/32/372_2.png) [@buhtz](https://discourse.jabref.org/u/buhtz)\
**Post date:** [March 3, 2017, 1:36pm UTC](https://discourse.jabref.org/t/surrogate-pattern-for-key-generator/487/1 "2017-03-03T13:36:33Z")

</div>

Can I use surrogate pattern in the key generator?

e.g.  
Use the “WWW”-pattern for “Online”

Online: [surrogate:WWW]

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [March 3, 2017, 4:14pm UTC](https://discourse.jabref.org/t/surrogate-pattern-for-key-generator/487/2 "2017-03-03T16:14:43Z")

</div>

Hi,

currently this is not possible. You would have to define the same pattern for WWW and Online.  
You can find an overview of the possibilites here:  
[http://help.jabref.org/en/BibtexKeyPatterns](http://help.jabref.org/en/BibtexKeyPatterns)

Please note that Camel casing actually does not work (there is already an issue)

Regards  
Christoph
