Forum Moderators: phranque

Message Too Old, No Replies

Spaces in rewrite

         

Weblamer

7:27 pm on Aug 31, 2011 (gmt 0)

10+ Year Member



So, I have a rewrite that needs to accept just letters and spaces.

This:

[A-Za-z]+

Works just fine for letters, but i need spaces in there as well.

this:

[A-Za-z\_s]+

works fine for one server (Added "\_s" for spaces)

However when I move it to a server on a different host, it crashes with a '500 internal server error'

Is there any other way to get spaces in there? or why would the other apache host crash on that expression?

thanks.

g1smd

7:47 pm on Aug 31, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



"\ " is a space. That's "escape" and "space".