jmahdi Posted March 8, 2012 Share Posted March 8, 2012 hi there i'm trying to get the number only when in this place: رقم الحديث: 62 the number following an arabic word and a colon, i'm pulling only these numbers from a database and they allways come after this specific arabic word (some times there might be a space between the colon and the digit), i had allready tried this /(\d+) :\p{Arabic}/ but to no avail!! what can i do? thanks Link to comment https://forums.phpfreaks.com/topic/258520-grabbing-something-in-a-foreign-language-arabic/ Share on other sites More sharing options...
abareplace Posted March 8, 2012 Share Posted March 8, 2012 May be, it's a logical vs. visual order problem. Please try to reverse the order: /\p{Arabic)\s*:\s*(\d+)/ Link to comment https://forums.phpfreaks.com/topic/258520-grabbing-something-in-a-foreign-language-arabic/#findComment-1325161 Share on other sites More sharing options...
jmahdi Posted March 8, 2012 Author Share Posted March 8, 2012 thanks, i'll try it... Link to comment https://forums.phpfreaks.com/topic/258520-grabbing-something-in-a-foreign-language-arabic/#findComment-1325162 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.