I have string like this one ==here==. How can I get here using RegEx pattern.
I know I can use .substring like
const pattern = "==";
const str = "==here==";
final start = str.indexOf(pattern) + pattern.length;
final end = str.lastIndexOf(pattern);
final sub = str.substring(start, end);
expect(sub, 'here');
for this but I want to use regex pattern so that I could get first match correctly.
What I want exactly is to get first string that is wrapped in two == even if there are thousand matches.