Reputation: 4 Apprentice
- Active Members
- Active Posts:
- 535 (0.85 per day)
- 31-August 11
- Profile Views:
- Last Active:
- Today, 01:23 AM
- Dream Kudos:
Posts I've Made
Posted 21 May 2013Never thought about that either. Essentially what you're saying is a lot of programming problems don't have a de facto method for solving the issue at hand.
Posted 19 May 2013Hello,
The problem here lies with the way you are escaping the square brackets inside the regular expression. Using one slash is simply escaping a character between the " ", you need to apply double slashes, See the snippet below!
var opinion = "Notch is a [GOOD] programmer"; opinion = opinion.replace(new RegExp("\\[GOOD\\]", "g"), "[BAD]"); alert(opinion); // Outputs: Notch is a [BAD] programmer
Wow Bingo!! I can't believe I didn't get that. Thanks for your help friend.
Posted 17 May 2013but html purifier doesn't use bbcode which is fine by me but I'm wondering what sites like this use with their bbcode or is that necessary why not just stick with html purifier then?
Posted 29 Apr 2013In this case just and but remember the complication is with all here meaning you don't put anything in the query. I don't see how you could use implode with this
Posted 29 Apr 2013Right I had already thought about that too but I don't like inefficiency like that, I like things to be programmed at least partially intelligently. Basically you just need an add to a query string like you show and for each one selected params++ is incremented whilst on the other if statements if params is greater than 1 you apple ' AND BLAH BLAH '. This requires one if statement PER USER SELECTION but not thousands of switches which would be required if you had many user selections lol.
- Member Title:
- D.I.C Addict
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
adn258 hasn't added any friends yet.