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 Quote Link to comment 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+)/ Quote Link to comment Share on other sites More sharing options...
jmahdi Posted March 8, 2012 Author Share Posted March 8, 2012 thanks, i'll try it... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.