How to match anything between {esbmsg:header:
and }
like xxxxxx
could be any string {esbmsg:header:xxxxxx}
How to match anything between {esbmsg:header:
and }
like xxxxxx
could be any string {esbmsg:header:xxxxxx}
Try with:
{esbmsg:header:([^}]*)}
Where [^}]*
matches everything that is not }
character.
Try this regex
{esbmsg:header:(.*)}
It will also allow you to have any character in value.
Well, if you want to capture only the content of your expression (the "xxxxx" part) the best approach is to use positive look ahead:
(?<={esbmsg:header:)[^}]+
Depending on how your content looks you might have to tweak the [^}] part. For further information on regex (or a detailed explanation of the expression above) I recommend the following: