Medic873 Posted August 23, 2011 Share Posted August 23, 2011 I have a input box that asks for a keyword but my issue is if the keyword is something like "good work" I need to change it into good+work so it can be entered into my website. im not sure how to do this ive tried somehing like this $Keywordstart1 = _StringBetween ($keywordstart, "|", "|"); $Keyword = _stringbetween ($keywordstart1[0], " ", "a" or "b" or "c" or "d" or "e" or "f" or "g" or can someone please point me in the right dirrection thank you Link to comment Share on other sites More sharing options...
Swiftor Posted August 23, 2011 Share Posted August 23, 2011 Give this a try: StringReplace($string, " ", "+") It will replace all spaces with a + sign. Link to comment Share on other sites More sharing options...
myk3 Posted August 23, 2011 Share Posted August 23, 2011 (edited) StringRegExpReplace($sInput, " ", "+") Edited August 23, 2011 by myk3 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