tags and group names

Group names and tags must be a string of alpha numeric words.  The words cannot be separated by more than one space.  They cannot contain any punctuation or wierd characters.  These only allowable characters are:
   
                a-z  0-9 
~ @ $ - _

The string cannot be more than 25 characters long.

Upper case letters will be converted to lower case letters.

This allows considerable lattitude for naming groups and tags.  However it is strongly suggested that multiple words and long names be avoided.  The shorter and simpler the name the more effective and nmeonic ti will be. 

Here is the exact algorithm to validate names that is going into testing.




function isName ($string) {
    global $error, $revised;
    $error="";
    $revised=strtolower(trim($string));
    if (strlen($revised)>25)  {
        $error=sprintf('Name cannot be greater than 25 characters. It was %s.',strlen($revised)) ;    
        return false;}
    # Allow alpha numeric words separated with single spaces
    # Only special characters allowed are:  ~ @ $ - _
    $pattern="@^(link|(\ ){1,1}link)+@";
    preg_match($pattern, $revised, $matches);
    if ($matcheslink==$revised) return true;
    return false;
}

Please comment only if it directly pertinant to these definitions or the algorithm. 

Tags

  1. groups
  2. syntax
  3. algorithms

Comments


Seth says
unfortunately the square bracket reference parser garbeled my regex pattern ... if anyone is interested i can post it as a text file

Mark de LA says
Is there anything magick about the the number 25 ?

Mark de LA says
Can use multiple spaces but not in a row ?

Seth says
nothing magic about 25 except that it is about the longest that i want to tolerate

Seth says
mark: Can use multiple spaces but not in a row ?

Yes.  Is that not implied by "
The words cannot be separated by more than one space. "  ?

Mark de LA says
"words cannot be separated by more than one space"
Was ambiguous if you put the emphasis on "one space".  I was getting the idea that you could possibly only have one space in the entire name. Just teasing it out of the cosmick ooze.


See Also

  1. Thought Do we need system tags? with 19 viewings related by tag "syntax".
  2. Thought Want contents? with 15 viewings related by tag "syntax".
  3. Thought FastBlogIt Common Stream with 12 viewings related by tag "groups".
  4. Thought Group on Politics with 12 viewings related by tag "groups".
  5. Thought square bracket syntax with 8 viewings related by tag "syntax".
  6. Thought Wiki Reference Wish List with 7 viewings related by tag "syntax".
  7. Thought about: Lawrence Krubner with 7 viewings related by tag "groups".
  8. Thought Syntactic Regrets with 5 viewings related by tag "syntax".
  9. Thought How can i log into an anonymous group to edit items or delete goofy tags? with 5 viewings related by tag "groups".
  10. Thought group quads project with 5 viewings related by tag "groups".
  11. Thought how everyone can have their own advatar here ... with 4 viewings related by tag "groups".
  12. Thought Wants & Needs with 4 viewings related by tag "groups".
  13. Thought group tag room wiki reference with 4 viewings related by tag "syntax".
  14. Thought Tags I like with 4 viewings related by tag "syntax".
  15. Thought swhack with 3 viewings related by tag "groups".
  16. Thought Want to change all group names to lower case. with 3 viewings related by tag "groups".
  17. Thought Domain groups with 2 viewings related by tag "groups".
  18. Thought Golden Rule with 2 viewings related by tag "groups".
  19. Thought Rooms and People ... Tags and Names with 1 viewings related by tag "groups".
  20. Thought Black River Blog with 1 viewings related by tag "groups".
  21. Thought dev - the fastblogit development group with 1 viewings related by tag "groups".
  22. Thought Automatic group selection with 1 viewings related by tag "groups".
  23. Thought Information about the FastBlogIt domain with 1 viewings related by tag "groups".
  24. Thought A list of groups that i frequent ? with 0 viewings related by tag "groups".
  25. Thought related tags with 0 viewings related by tag "algorithms".
  26. Thought About Speak To Me Catalog with 0 viewings related by tag "groups".
  27. Thought add groups to the live search with 0 viewings related by tag "groups".
  28. Thought the Identity Web vs mutually resonant entities with 0 viewings related by tag "groups".
  29. Thought changing the picture size algorithm with 0 viewings related by tag "algorithms".
  30. Thought ok here is the sizing algorithm that will go into testing with 0 viewings related by tag "algorithms".
  31. Thought The Evil Geniuses of Marketing with 0 viewings related by tag "groups".
  32. Thought Test and QA with 0 viewings related by tag "groups".
  33. Thought about: group Cheng Hsin - developed to Peter Ralston with 0 viewings related by tag "groups".
  34. Thought header pictures are broken in group tag rooms with 0 viewings related by tag "groups".
  35. Thought References to reserved groups with 0 viewings related by tag "groups".
  36. Thought journal of jason with 0 viewings related by tag "groups".
  37. Thought Sending Invitations with 0 viewings related by tag "groups".
  38. Thought about: strange attractors in human behavior - google search with 0 viewings related by tag "groups".
  39. Thought Making it easier to switch groups with 0 viewings related by tag "groups".
  40. Thought Hi I Am anony-mouse with 0 viewings related by tag "groups".
  41. Thought What is a joy stream ? with 0 viewings related by tag "groups".
  42. Thought Comment spam may be our biggest challenge early on with 0 viewings related by tag "groups".
  43. Thought Test and QA with 0 viewings related by tag "groups".
  44. Thought Distinguishing the common river, from tag rooms, from group rooms by colors ? with 0 viewings related by tag "groups".
  45. Thought about: Tag formats: Can't we all just get along? - Signal vs. Noise (by 37signals) with 0 viewings related by tag "syntax".
  46. Thought peg with 0 viewings related by tag "syntax".
  47. Thought A Quick Blurb with 0 viewings related by tag "groups".
  48. Thought about: tagifieds with 0 viewings related by tag "syntax".
  49. Thought rel="tag" with 0 viewings related by tag "syntax".
  50. Thought If you edit an item, it pushes it out into the river again. with 0 viewings related by tag "groups".