G
Guest
hi,
i have a regular expression question here.
string: "({WBC} * {FBC} - {ABC} * 5)"
pattern: "(.*?)(\{)(.+?)(\})(.*?)"
replace: "$3 "
expected result: "WBC FBC ABC"
returned result: "WBC FBC ABC * 5)"
where did i go wrong?
any help will be much appreciated.
thanks!
Lance
i have a regular expression question here.
string: "({WBC} * {FBC} - {ABC} * 5)"
pattern: "(.*?)(\{)(.+?)(\})(.*?)"
replace: "$3 "
expected result: "WBC FBC ABC"
returned result: "WBC FBC ABC * 5)"
where did i go wrong?
any help will be much appreciated.
thanks!
Lance