You are here: Re: Extract any URL from any string? « PHP Programming Language « IT news, forums, messages
Re: Extract any URL from any string?

Posted by Janwillem Borleffs on 02/13/07 20:25

deko wrote:
> Thanks, but I'm still baffled by that syntax - why the second
> negation '!' after the first '$' ? I understand that '$' means end
> of line, and 'i' means case insensitive... is '$!' saying "not ending
> with"?

The exclamation marks are used to indicate the beginning and the end of the
pattern. The following will also work:

#(pattern)#
|(pattern)|
?(pattern)?

.....or any character that's not in use by the pattern. This is not a
restriction, however, because you can escape characters with a backslash
when they occur both in the pattern and as pattern delimiters:

|(a\|b)|


JW

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация