Tango.info az 09 name: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
(revert "non [_a-z]" -> special characters)
No edit summary
Line 3: Line 3:


To transform a string into a '''a_z_name''' the following conversion is applied
To transform a string into a '''a_z_name''' the following conversion is applied
* convert letters to lowercase
* convert each uppercase letter to lowercase
* remove diacritics
* remove each diacritic
* convert special character to _  
* convert each special character to _  
* convert multiple _ to one _
* convert the sequence "__" to "_" until there is no more sequence "__"


== Link ==
== Link ==

Revision as of 2012-09-03T23:21:32

needs fix - 0-9 undefined

A tango.info a z name only includes letters a-z and underscores. regex: [_a-z]

To transform a string into a a_z_name the following conversion is applied

  • convert each uppercase letter to lowercase
  • remove each diacritic
  • convert each special character to _
  • convert the sequence "__" to "_" until there is no more sequence "__"

Link

See also