Hi! I have recently started using Studio 2015 and I have a question about recognized tokens. Does Studio not recognize names in uppercase as placeables so that they can be chosen from the drop-down list instead of having to type the whole name?
Hi! I have recently started using Studio 2015 and I have a question about recognized tokens. Does Studio not recognize names in uppercase as placeables so that they can be chosen from the drop-down list instead of having to type the whole name?
Oh sorry, I thought you meant words in uppercase. No, proper names are not recognized, but an easy way of handling them is by using the Regex Match AutoSuggest Provider app from the Open Exchange. A little info about it here: http://noradiaz.blogspot.mx/2015/07/a-collection-of-regular-expressions-for.html and here http://multifarious.filkin.com/2015/01/01/autosuggest/
And the expression you would need for proper names could be:
Regex Pattern: \b[A-Z]\w+\b
Replace Pattern: $0
Note: This one matches both words with just an initial cap or in all caps, so Peter and PETER would both be matched. If you want it to only match words like "Peter", you could use \b[A-Z][a-z]+\b as the Regex Pattern.
To reduce clutter and not match the first word of a segment, I use this:
Regex Pattern: (?<!^)\b[A-Z]\w+\b
Replace Pattern: $0
This matches words in all caps or with an initial cap but not at the beginning of a segment.