正则表达式PHP部分字符串[重复]

This question already has an answer here:

I cant get my regexpression to work in php. It works in javascript (vuejs):

(?<=.+: )(.*)

I have this string:

NL: abcdef

and i would like to get

abcdef

Can someone please tell me what i am doing wrong?

</div>

There are many ways to solve this using PHP/PCRE, one is to skip the preceding string using \K

[^:]+: \K(.*)

Regex Demo

If you can add an anchor to the beginning of the string, even better: ^[^:]+: \K(.*)