Finding the shortest match
Posted: Mon Aug 19, 2013 5:55 pm
Hi!
I would like to replace
a1 {
someting
}
in the text
a1 {
someting
}
a2{
someting
}
a3 {
someting
}
The expression "a1.*\}\r\n" does find all until the last }
How can I get the shortest match?
Thanks
I would like to replace
a1 {
someting
}
in the text
a1 {
someting
}
a2{
someting
}
a3 {
someting
}
The expression "a1.*\}\r\n" does find all until the last }
How can I get the shortest match?
Thanks