I want to match text after given string. In this case, the text for lines starting with \"BookTitle\" but before first space:
BookTitle:HarryPotter JK Rowli
With the 'multi-line' regex option use something like this:
^BookTitle:([^\s]+)
Without multi-line option, this:
(?:^|\n)BookTitle:([^\s]+)