Help me to split string with Regular Expression
- by Lu Lu
Hello, I have a string:
CriteriaCondition={FieldName={*EPS}*$MinValue=(-201)$MaxValue=(304)$TradingPeriod=(-1)}
Help me to get the first word which ends with the first word "={" & get the next following word which ends with "}".
The result must be:
Word1 = "CriteriaCondition"
Word2 = "FieldName={EPS}$MinValue=(-201)$MaxValue=(304)$TradingPeriod=(-1)"
And with the string "FieldName=(EPS)$MinValue=(-201)$MaxValue=(304)$TradingPeriod=(-1)", help me to split to pairs:
FieldName EPS
MinValue -201
MaxValue 304
TradingPeriod -1
Thanks.