Activity Stream
48,167 MEMBERS
62163 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com

    Default need help with some regex

    so, i have this:
    Code: 
    $pattern = '|http[^ ["<\t\n\r\f\v]{1,}|';
            preg_match_all($pattern, $links, $matches);
    this code finds the correct links for rs, hf, sharingmatrix but not for fileserve

    for fileserve i only get
    Code: 
    http://www.fileser
    and my links are
    Code: 
    http://www.fileserve.com/file/afdsaf
    http://www.fileserve.com/file/werwq
    http://www.fileserve.com/file/wr23
    http://www.fileserve.com/file/adsfa
    http://www.fileserve.com/file/adsffdsa
    how can i get the full fileserve links?

    thanks
    t3od0r Reviewed by t3od0r on . need help with some regex so, i have this: $pattern = '|http{1,}|'; preg_match_all($pattern, $links, $matches); this code finds the correct links for rs, hf, sharingmatrix but not for fileserve for fileserve i only get http://www.fileser and my links are http://www.fileserve.com/file/afdsaf http://www.fileserve.com/file/werwq http://www.fileserve.com/file/wr23 http://www.fileserve.com/file/adsfa http://www.fileserve.com/file/adsffdsa Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    simples, your using single qoutes, witch means you cannot escape chars because everything is literal.

    try

    PHP Code: 
    $pattern "#http[^ [\"<\t\n\r\f\v]{0,1}#";
    preg_match_all($pattern$links$matches); 
    something like that
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Regex in shell
    By mahjong in forum Server Management
    Replies: 0
    Last Post: 8th Apr 2012, 08:58 AM
  2. Need help with RegEx
    By dima1236 in forum Web Development Area
    Replies: 7
    Last Post: 14th Jan 2012, 05:53 PM
  3. Need help with Regex - VB.NET
    By Connor in forum Web Development Area
    Replies: 2
    Last Post: 27th Sep 2011, 05:11 PM
  4. php help regex!
    By ?RaJ? in forum Technical Help Desk Support
    Replies: 7
    Last Post: 26th Apr 2011, 09:22 PM
  5. Help with Regex
    By ChaoscripT in forum Web Development Area
    Replies: 2
    Last Post: 15th Dec 2010, 09:26 PM

Tags for this Thread

BE SOCIAL