How do I say NO LINE BREAKS in regex?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
McMillian
Forum Newbie
Posts: 3
Joined: Tue Jul 22, 2008 1:52 am

How do I say NO LINE BREAKS in regex?

Post by McMillian »

let's say I want to find the first instance of a link on this page, so I want to search for a link format and specify no line breaks in the match:

'|http://.[^\n\r]*\..{3}|'


except that's not right, so how do i do it
McMillian
Forum Newbie
Posts: 3
Joined: Tue Jul 22, 2008 1:52 am

Re: How do I say NO LINE BREAKS in regex?

Post by McMillian »

I ended up using \S
Post Reply