Jump to content

Athens_demon

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Athens_demon's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi there. After a lot of searching I found this regex -> preg_match_all("/^[^a-z0-9]+([^_\\.-][^a-z0-9]+)*^@([^a-z0-9]+([^\.-][^a-z0-9]+)*)+\\.[a-z]{2,}/i", $text, $output); that finds emails inside a string. How can I have the exact oposite effect? I really need to know what are the words that aren't a valid email address :-) Any help will be great...
  2. Thank you so much! It is working great . I am just used to put styles after href. But I guess that I am ok with this code.
  3. Hi there!, I am trying to figure out how to use preg_replace or preg_match. I want to search a text block and add a color style to all the links. How is this possible? Logical Example: Search - > "<a href="whatever.php?id=123&sid=2312">" and replace with <a href="whatever.php?id=123&sid=2312" style="color: rgb(255, 250, 255);">
×
×
  • 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.