ryan711 1 Posted January 3, 2010 Report Share Posted January 3, 2010 I'm trying to manage a list of categories in the format category:subcategory. The category and subcategory are in two seperate drop down boxes so I need to be able to seperate them. I currently have them in a list box tied to the var. #ezinecat. I tried setting a new variable using the $replace and a wild card *: for the subcat and tried to replace it with nothing with $nothing. When try to use the new variable I just get the whole text, nothing is replaced. Does anyone know how to do this? Thanks. Quote Link to post Share on other sites
Aaron Nimocks 19 Posted January 3, 2010 Report Share Posted January 3, 2010 The code you have works for replacing the characters. Just try to output in Google. Guessing the issue is from where you are using it. Where and what on ezine are you trying to do? Quote Link to post Share on other sites
ryan711 1 Posted January 3, 2010 Author Report Share Posted January 3, 2010 I used the code above as a test. Like I put test:word in the text box in the above example and the output to google would just be test:word while it should have been just word since the wildcard should have removed everything up to and including the colon. I thought maybe I was doing something wrong. I haven't tested it on ezine yet as I haven't written the macro to submit the article, I just have the categories and subcats in a list text box. If the code looks right, I will try it again. Quote Link to post Share on other sites
Aaron Nimocks 19 Posted January 3, 2010 Report Share Posted January 3, 2010 Ohh I dont think you can use a wildcard there. I test using a variable of test*:test Since it works from what I tested I dont think you can use a wildcard in $replace. Quote Link to post Share on other sites
ryan711 1 Posted January 3, 2010 Author Report Share Posted January 3, 2010 Ohh I dont think you can use a wildcard there. I test using a variable of test*:test Since it works from what I tested I dont think you can use a wildcard in $replace. Darn. Well thanks for trying to help anyway. Quote Link to post Share on other sites
ryan711 1 Posted January 3, 2010 Author Report Share Posted January 3, 2010 for those that are interested in knowing how to do this, I think I've solved it. All you need to do is add the variable to a list and use ":" as the delimiter, and then just choose "next list item" for the category, and then again after choosing the sub-category. Quote Link to post Share on other sites
Frank 177 Posted February 18, 2010 Report Share Posted February 18, 2010 Good work around to be sure. The replace feature definitely needs boning up to support wildcards. Quote Link to post Share on other sites
botbie 0 Posted February 10, 2011 Report Share Posted February 10, 2011 so bad. why replace function cannot work with wildcards!!! Quote Link to post Share on other sites
gypsy777 1 Posted July 9, 2012 Report Share Posted July 9, 2012 Just wondering if the replace constant supports wildcards now. Im struggling to get it working. Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 9, 2012 Report Share Posted July 9, 2012 Yes you can use $replace regular expression command. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.