Link to home
Start Free TrialLog in
Avatar of gourav_jain
gourav_jain

asked on

regex question

Hi all i have a problem in the regular expression.. plz help

$a = "<a:1>\nb\nef\n</a>\n<a:2>\nb\n</a>\n<a:3>\nb\n</a>";

My problem is to remove <a:1>\nb\nef\n</a> from the string, facing problem in creating the non greedy regex for this. This cod contain n number of lines between <a:1> and </a>

Thanks


ASKER CERTIFIED SOLUTION
Avatar of xanius
xanius

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial