d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Regular Expression
Add Reply New Topic New Poll
Member
Posts: 4,609
Joined: Mar 9 2008
Gold: 2,937.00
Mar 3 2015 02:36pm
I'm trying to parse out an imbedded token within a token.

[Table:Value]

Well now we want to do:

[[Table1:Value1]:[Table2:Value2]]

So basically I want it to:
a = [Table1:Value1]
b = [Table2:Value2]

c= [a:b]

Regex pattern = (?<=\[{3})[^}]*(?=\]{3})

Anyone have an idea to find the inner first then find the outer?
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll