Is there a way to find a pattern in a string in blueprints?
for instance I have some names formatted something like “eyeLeftScale”, e.g. the name of the affected item is all lowercase and what it does to said item is described starting from the first uppercase character.
Is there a way I could extract just the ‘eye’ part from this string in blueprints?
The only thing i can think of is find substring, but it doesn’t seem to support regex or wildcards.
So for instance if I could somehow put “first uppercase letter” into substring, then subtract the result by one, i would be able to use get substring to print the snippet I need.
That looks disgustingly useful but I’ve figured out a way to do what I need without a plugin. A disgustingly inefficient way so I’ll probably end up using that plugin anyways though I’m pretty sure the plugin with proper pattern matching is superior.
I have used the get character as number node:
It gets the ASCII decmial value of a character, so using that I can get the range of uppercase characters using an ASCII table like this:
With the downside being that non-english characters aren’t supported (some are but you need to support them on character by character basis, it won’t be a range anymore)
So to print eye like in my original question, I do this: