Quote:
Originally Posted by DMee
On a similar vein, rather than just the initials - is it possible to have the first x characters of each word?
Lor-of-the-Rin [01] etc ??
|
Yes. The part in red is captured to make initials.
Code:
Name: #initials. Template: {#stripped_series:re([\s]?([^\s])[^\s]+(\s|$),\1)}
Change it to
where x is the number of characters you want (including the first time).
So using {1,3} means use that set [^\s] at least once and not more than 3x.
{0,1} is another way of saying "?", or "optional". (Either match only the initial time, or not at all.)
For further information (that is, gory details

) on repeating characters see:
http://www.regular-expressions.info/repeat.html#limit