string value ^[A-E] in php
<p>Is it okay to set a string lets say <code>$expression='^[A-E]'</code> in php?</p>

<p>I'm trying to pass it as a regular expression but I find that its being used as something messed up like <code>%5E%5BA-E%5D</code> </p>
