Jump to content

[SOLVED] After colon to end of line


bluesoul

Recommended Posts

Ugh, I'll be the first to admit that regex isn't my strong suit and I may not even need it for this but I don't think substr will do it. Say I have a line that reads...

 

request.type: domain.transfer.request

 

I need to take everything after the colon and space and store it as a string.  request.type: is constant, the text after it is not, and there will usually be lines above and below request.type.

Link to comment
https://forums.phpfreaks.com/topic/137256-solved-after-colon-to-end-of-line/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.