Regular Expressions on Punctuation

I would try a character class regex similar to Add whatever characters you wish to match inside the []s. Be careful to escape any characters that might have a special meaning to the regex parser. You then have to iterate through the matches by using Matcher.find() until it returns false.

Creating random numbers with no duplicates

The simplest way would be to create a list of the possible numbers (1..20 or whatever) and then shuffle them with Collections.shuffle. Then just take however many elements you want. This is great if your range is equal to the number of elements you need in the end (e.g. for shuffling a deck of cards). … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)