Sign in to follow this  
Followers 0
Medic873

string help

3 posts in this topic

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

Share this post


Link to post
Share on other sites



Give this a try:

StringReplace($string, " ", "+")

It will replace all spaces with a + sign.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

StringRegExpReplace($sInput, " ", "+")

Edited by myk3

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0