title: Check for invalid characters in a php string
body: <p>How can i check to see if a php string contains only 0-9 , and |? so it would accept <code>158,147|157,541|145,157</code> but not <code>125 ,148|126,4</code></p>