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