إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية


 
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 07-01-2010, 06:10 AM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,670
عدد الـنقاط :3341
 تقييم المستوى : 2140

hi,
i have a problem with the REGEX and cleaner.php from impex tools.

what i want is to change the BBCode [IMG] of all images which have the "example.com" url to [AME] BBCode

PHP Code:
[IMG]http://example.com/img/cbhdgvgdqarb.jpg[/IMG]


to -->>

PHP Code:
[AME]http://example.com/img/cbhdgvgdqarb.jpg[/AME]

so this is my idea, but dont work:

PHP Code:
$text = preg_replace('#(http.*example\.com.*)\[/img:[a-z0-9]+\]#siU', '[AME]h$1[/AME]', $text);

are here experts that can fix this to a clean regexcode`?
__DEFINE_LIKE_SHARE__
رد مع اقتباس
 

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 05:21 PM


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML