I have strings like below:
@property.one@some text here@property.two@another optional text here etc
which contains @.+?@ strin
@.+?@
If you know that the separator will be @, then why not just use the split method (string.split('@'))?
@
string.split('@')