I'm having one hell of a time with this and I'd love if someone can give me a hand....
An Example of the Submitted String is
Code:
[1;33m Villain [0;32mRicki Amber - [35mWoodland Lord[32m of [33mNity's Harem [37m
Now the details, Not sure if you know, but the above is a single line of ANSI Escaped text...
There can be any number of Escape code Sequences which start with a Chr$(27) and End with a lowercase "m"
Inbetween there can be any number of Characters, but mostly Semicolon's and Numbers, few Capital letters thrown in sometimes but it ALWAYS ends in a lowercase m.
Those I want to disregard.
Where the word Villan is, that can be a couple of things, or could be nothing, I want to capture it no matter what it is.
The Ricki Amber is a First / Lastname, I want to capture both Seperatly. There will only ever be a single space between the two names, nothing else between.
Next The "Woodland Lord" Title I want to capture also.
Lastly, The "of Nity's Harem" I only want to capture the "Nity's Harem" portion.
The whole statement ends with a vbcrlf
I've been workin on it, but i keep losing myself, here's all I ended up with:
Code:
?[\[[;|\d]m]+(\w+)\s[\[[;|\d]m]+\s+[-|X][\[[;|\d]m](\w+)[\[[;|\d]m]\s+[of]{0-1}\s[\[[;|\d]m](\w+\s+)[\[[;|\d]m]
Any help with this would be greatly appreciated...