Suggestion: replace the above with:s/_-_/-/g; s/^_+//g; s/_+$//g;
s/_(?:-_)+/_/g; s/^[-_]+//; s/[-_]+$//;
In reply to Re: A module for creating "sane" URLs from "arbitrary" titles?
by JavaFan
in thread A module for creating "sane" URLs from "arbitrary" titles?
by Corion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |