# Is there an official regular expression for company names?

**URL:** <http://forum.companieshouse.gov.uk/t/is-there-an-official-regular-expression-for-company-names/1382>\
**Category:** API Question\
**Created:** [October 4, 2017, 1:51pm UTC](http://forum.companieshouse.gov.uk/t/is-there-an-official-regular-expression-for-company-names/1382 "2017-10-04T13:51:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevor](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/t/258eb7/32.png) [@trevor](http://forum.companieshouse.gov.uk/u/trevor)\
**Post date:** [October 4, 2017, 1:51pm UTC](http://forum.companieshouse.gov.uk/t/is-there-an-official-regular-expression-for-company-names/1382/1 "2017-10-04T13:51:16Z")

</div>

I.e. a best practice regular expression to clean up input before submitting a name for a search.

Along the lines of this type of thing?  
preg\_replace("/[^a-zA-Z0-9&()@#’]+/", " ", $\_POST[‘companyname’])
