<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1058291" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1058291</link>
    <description></description>
    <language>en</language>
          <item>
    <title>It&#039;s really not possible to</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/php-regular-expression#comment-1288463</link>
    <description> &lt;p&gt;It&#039;s really not possible to define a regular expression to extract a string without knowing the pattern that you are looking for. For example, in this case you don&#039;t need a regular expression. Just look for the string between &quot;@&quot; and &quot;?&quot;. However, there must be more extreme cases that are possible if this doesn&#039;t work for you. So, you need to specify moreso what the pattern is you know will exist and what portion you want to get back. This can either be a literal pattern, like &quot;mailto:{word}@{string I want}?{more}&quot;, or you could at least start with more examples of the type of strings you want to extract a component from, like:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;mailto:info@abc.com?subject=Feedback&quot; title=&quot;mailto:info@abc.com?subject=Feedback&quot;&gt;mailto:info@abc.com?subject=Feedback&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;mailto:somethingelse@a.b.org?word=AnotherThing&quot; title=&quot;mailto:somethingelse@a.b.org?word=AnotherThing&quot;&gt;mailto:somethingelse@a.b.org?word=AnotherThing&lt;/a&gt;&lt;br /&gt;
mailto:thiscanhavenumb3rsands!mbols@url.co.uk&lt;/p&gt;
&lt;p&gt;If you can provide more information, we can get closer to the regular expression that works for you.&lt;/p&gt;
 </description>
     <pubDate>Sun, 06 Apr 2014 16:14:15 +0000</pubDate>
 <dc:creator>kazimmerman</dc:creator>
 <guid isPermaLink="false">comment 1288463 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
