sven Posted August 12, 2004 Share Posted August 12, 2004 im having a problem, it seems that when i do a preg replace for ".", it changes all the letters in the string, anyone know of a way to change the period to a sertain text without this problem?thanks, any code will work Link to comment Share on other sites More sharing options...
RoVeRT Posted August 13, 2004 Share Posted August 13, 2004 simply add a \ before the . so it looks like "\." . equals any character so it needs to be escaped Link to comment Share on other sites More sharing options...
sven Posted August 16, 2004 Author Share Posted August 16, 2004 ok, thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now