Sure thing.
Another option might be:
Code: Select all
[PercentString]
Meter=String
FontSize=22
InlineSetting=Color | 255,0,0,255
InlinePattern=\d
InlineSetting2=Color | 0,255,0,255
InlinePattern2=[^\d]
AntiAlias=1
DynamicVariables=1
Text=[Percent:0] %
Just means:
\d any and all numeric characters
[^\d] any and all of the character set that is
^ NOT a numeric character
Note that the ^ (NOT) modifier only applies to a single character (not "greedy") or a [character set].
A
[character set] is a way to define one or more
individual characters or
\character classes in any order. So:
Code: Select all
[PercentString]
Meter=String
FontSize=22
SolidColor=0,0,0,1
InlineSetting=Color | 255,0,0,255
InlinePattern=[ABC]
InlineSetting2=Color | 0,255,0,255
InlinePattern2=[123]
InlineSetting3=Color | 0,0,255,255
InlinePattern3=[DEF]
AntiAlias=1
DynamicVariables=1
Text=CEA123FBD
1.jpg
InlinePattern=[ABC] in effect means "A or B or C in any order". It doesn't mean the strict pattern "ABC".
[character sets] can include "ranges" like
a-zA-Z0-9 as well.
[^\d] and
[^0-9] are synonymous.
In order to
exclude a strict pattern like "hello world", it would take some pretty complicated negative lookahead assertion, and it's probably not worth it. I'm not entirely sure it is even possible... Just
include the "hello world" pattern in a separate InlineSetting that sets it some other way than the rest.
You do not have the required permissions to view the files attached to this post.