{"id":1181,"date":"2010-02-12T02:20:11","date_gmt":"2010-02-12T02:20:11","guid":{"rendered":"https:\/\/hanif.de\/?p=1181"},"modified":"2022-11-07T02:44:23","modified_gmt":"2022-11-07T02:44:23","slug":"regular-expressions-and-the-quran","status":"publish","type":"post","link":"https:\/\/hanif.de\/?p=1181","title":{"rendered":"Regular Expressions and The Quran"},"content":{"rendered":"<p><span lang=\"EN-US\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1183 alignleft\" src=\"https:\/\/hanif.de\/wp-content\/uploads\/2010\/02\/regex.jpg\" alt=\"\" width=\"174\" height=\"77\" \/>Regular Expressions (abbreviation: <strong>RegEx<\/strong>) are signs which built in an intelligent and easy to understand system. We have the ability to use this system in <a href=\"https:\/\/hanif.de\/havalite\/plugins\/download_counter\/download.php?d=software\/oq_setup.exe\">Openquran <\/a>and improve our work much faster and even exactly. If users of OpenQuran doing research to the counts and calculations of Letters\/words\/verses and there gematrical values than its very important to understand the idea behind <strong>RegEx<\/strong>. <\/span><\/p>\n<p><span lang=\"EN-US\">RegEx is mostly used in programming languages, databases, search engines, Spam filters etc. It\u2019s easy to understand but needs from us more the artistic talent on how to build the RegEx definitions. There are also a lot of Sites which have more detailed informations on how to use this small powerful language, but the would like easily show how to use with the Arabic language and specially for the Quran.<\/span><\/p>\n<p><span style=\"color: #000080;\"><strong><big>The <span lang=\"EN-US\">the<\/span>oretical part<\/big><\/strong><\/span><\/p>\n<p><span lang=\"EN-US\">The next table shows many signs (<span style=\"color: #ff8c00;\">orange color<\/span>) and on the right side the meaning of these signs. <\/span><\/p>\n<table border=\"1\" width=\"100%\" cellspacing=\"1\" cellpadding=\"5\">\n<tbody>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">.<\/h4>\n<\/td>\n<td>a <strong>dot <\/strong>replaces any sign like letter, number oder space<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">*<\/h4>\n<\/td>\n<td>a <strong>star <\/strong>after a sign means: this sign can exist even many times or it does not exist at all<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">.*<\/h4>\n<\/td>\n<td><strong>The example finds this whole string <\/strong><\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">[a-z]*<\/h4>\n<\/td>\n<td>finding only small letters or none<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">(?i)<\/h4>\n<\/td>\n<td>finding small or capital letters<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">th.*s<\/h4>\n<\/td>\n<td>find<strong> <span style=\"text-decoration: underline;\">th\u2026\u2026\u2026\u2026.s<\/span><\/strong><\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">^A<\/h4>\n<\/td>\n<td>The text must begin with\u00a0 <strong>A<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">s<strong>$<\/strong><\/h4>\n<\/td>\n<td>The text has to end with <strong><span style=\"text-decoration: underline;\">s<\/span><\/strong><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<h4 style=\"color: #ff6600;\"><\/h4>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">[a-z|A-Z]<\/h4>\n<\/td>\n<td>Only small or capitel letters<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">[^a-z]<\/h4>\n<\/td>\n<td>find none of <span lang=\"EN-US\">the<\/span>se letters<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">[a1]<\/h4>\n<\/td>\n<td>find <strong>a<\/strong> or <strong>1<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">[^abcd]<\/h4>\n<\/td>\n<td>find none of <strong>a b c <\/strong>or <strong>d<\/strong><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<h4 style=\"color: #ff6600;\"><\/h4>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">s|t<\/h4>\n<\/td>\n<td><strong>s<\/strong> or<strong> t<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">M(e|i)*r<\/h4>\n<\/td>\n<td>(<strong>e<\/strong> or<strong> i<\/strong>) find: <strong>Mr<\/strong>, <strong>Mer<\/strong>, <strong>Meir<\/strong>, <strong>Mier <\/strong>or <strong>Mir<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">M(e|i)?r<\/h4>\n<\/td>\n<td>(<strong>e<\/strong> or\u00a0 <strong>i<\/strong>) 1 same as befor but also find <strong>Miiiiieeeeer<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">a+<\/h4>\n<\/td>\n<td>finds at least 1 <strong>a <\/strong>or many <strong>aaaaaaa\u2026..<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">a{5}<\/h4>\n<\/td>\n<td>finds 5 times <strong>aaaaa<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">a{3,}<\/h4>\n<\/td>\n<td><strong>a <\/strong>must be 3 times or more<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">a{,3}<\/h4>\n<\/td>\n<td><strong>a<\/strong> exits 3 times or lesser<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">a{3,8}<\/h4>\n<\/td>\n<td><strong>a <\/strong>must exist 3 to 8 times<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">w<\/h4>\n<\/td>\n<td>finds letter chars<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">\\W<\/h4>\n<\/td>\n<td>finds no letter chars<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">\\d<\/h4>\n<\/td>\n<td>finds only numbers [0-9]<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">\\D<\/h4>\n<\/td>\n<td>finds no numbers<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">\\s<\/h4>\n<\/td>\n<td>finds white space<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">\\S<\/h4>\n<\/td>\n<td>finds no white space<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">\\b<\/h4>\n<\/td>\n<td>sign\/s limit <strong>\\b<\/strong>word<strong>\\b<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">\\B<\/h4>\n<\/td>\n<td>sign\/s ar not limited<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">\\t<\/h4>\n<\/td>\n<td>tab<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">|<\/h4>\n<\/td>\n<td>or<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">\\<\/h4>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">[ ]<\/h4>\n<\/td>\n<td>contains many differt signs<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">( )<\/h4>\n<\/td>\n<td>contains a group of sign\/string<\/td>\n<\/tr>\n<tr>\n<td>\n<h4 style=\"color: #ff6600;\">{x,y}<\/h4>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color: #000080;\"><strong><big>The practical part<\/big><\/strong><\/span><span style=\"color: #000080;\"><strong><big> (Using in Openquran)<\/big><\/strong><\/span><\/p>\n<p>To use RegEx in Openquran we have to set <span lang=\"EN-US\">the<\/span> checkbox &#8220;<strong>Regular expressions<\/strong>&#8220;, and choose <span lang=\"EN-US\">the<\/span> table (translation) in which we want to search; here we\u00b4ll choose <span lang=\"EN-US\">the<\/span> table <strong>quran <\/strong>which is automatically installed with OQ.<\/p>\n<p>Important:<\/p>\n<ul>\n<li><span style=\"color: #ff8c00;\">The orange colored signs are to be used\/typed in <span lang=\"EN-US\">the<\/span> searchbox.<\/span><\/li>\n<li><span style=\"color: #a9a9a9;\">The gray colored sentences are <span lang=\"EN-US\">the<\/span> result of our search<\/span><\/li>\n<li>If <span lang=\"EN-US\">the<\/span> calculation needs too much time, you can stop any time by pressing <strong>ESC <\/strong>button.<\/li>\n<li>We can also use <strong><span lang=\"EN-US\">the<\/span> analyze function<\/strong> <em>(right click on <span lang=\"EN-US\">the<\/span> seachbox)<\/em> instead of <span lang=\"EN-US\">the<\/span> search button. It is much faster and shows detailed informations about <span lang=\"EN-US\">the<\/span> calculation.<\/li>\n<li>If you see a small star on <span lang=\"EN-US\">the<\/span> right side of a number <strong>304<\/strong><span style=\"color: #ff0000;\">*<\/span> that means this number is divisible to <strong>19<\/strong><\/li>\n<li><strong>Notic <\/strong>that <span lang=\"EN-US\">the<\/span> most confusing part in our work is by combinig <strong>arabic chars with latin signs<\/strong>. That\u00b4s why we\u00b4re forced to change <span lang=\"EN-US\">the<\/span> direction of <span lang=\"EN-US\">the<\/span> write method in some examples to be &#8220;<strong>RightToLeft<\/strong>&#8221; (RTL).<\/li>\n<\/ul>\n<p><strong>Counts of chars<\/strong>:<\/p>\n<hr \/>\n<p><big><span style=\"color: #ff8c00;\">\\w<\/span><\/big><\/p>\n<p>This will count any letter found in <span lang=\"EN-US\">the<\/span> whole quran. <em>(run <strong>Analyze <\/strong>&#8220;right click&#8221; instead of normal search. Cause OQ colorizes every sign to red)<br \/>\n<span style=\"color: #a9a9a9;\">\/\/ <\/span><\/em><span style=\"color: #a9a9a9;\"><b>326030<\/b> Entries (<b>328158<\/b> with Basmalah\/s* ), <b>6234<\/b> Verses in <b>114*<\/b> Suras<\/span><\/p>\n<hr \/>\n<p><span style=\"color: #ff8c00;\"><big>^\\w{7}\\b<\/big><\/span><\/p>\n<p>View verses which begin with a <strong>7 letters word<\/strong> like ( <big><span style=\"font-family: tahoma,geneva,sans-serif;\"><span style=\"color: #ff0000;\">\u0648\u0627\u0642\u064a\u0645\u0648\u0627<\/span> \u0627\u0644\u0635\u0644\u0648\u0647<\/span><\/big> ) in verse 2:43<br \/>\n<span style=\"color: #a9a9a9;\">\/\/ <\/span><span style=\"color: #a9a9a9;\"><strong>304*<\/strong> Entries, <strong>304*<\/strong> Verses in <strong>77<\/strong> Suras<\/span><\/p>\n<hr \/>\n<p><big><span style=\"color: #ff8c00;\">\\b\\w{6}\\b<\/span><\/big><\/p>\n<p>View any <strong>word <\/strong>which consists of <strong>6 letters<\/strong><br \/>\n<span style=\"color: #a9a9a9;\"><b>\/\/ 11163<\/b> Entries (<b>11387<\/b> with Basmalah\/s ), <b>4669<\/b> Verses in <b>112<\/b> Suras<\/span><\/p>\n<hr \/>\n<p><span style=\"color: #ff8c00;\"><big>^[\\w| ]{19}\u0627<\/big><\/span><\/p>\n<p>search for <strong>Alif <\/strong>letter after counting 19 leters or spaces<br \/>\n<span style=\"color: #a9a9a9;\">\/\/<b> 710<\/b> Entries, <b>710<\/b> Verses in <b>95*<\/b> Suras<\/span><\/p>\n<hr \/>\n<p><span style=\"color: #ff8c00;\"><big>^(\\w[ ]*){114}\u0627<\/big><\/span><\/p>\n<p>search for <strong>Alif <\/strong>letter after counting 114 letters (without counting spaces)<br \/>\n<span style=\"color: #a9a9a9;\"><span style=\"font-weight: bold;\">\/\/ <\/span><\/span><span style=\"color: #a9a9a9;\"><b>57*<\/b> Entries, <b>57*<\/b> Verses in <b>23<\/b> Suras<\/span><\/p>\n<hr \/>\n<p style=\"text-align: right;\"><span dir=\"rtl\"><big><span style=\"color: #ff8c00;\">^\u0627\u0644\u0631\u062d\u0645\u0646<\/span><\/big><\/span><\/p>\n<p>find verses which begin with <strong><span style=\"font-family: tahoma,geneva,sans-serif;\">\u0627\u0644\u0631\u062d\u0645\u0646<\/span><\/strong><br \/>\n<span style=\"color: #a9a9a9;\"><strong>3 <\/strong>Entries, <strong>3 <\/strong>Verses in <strong>3 <\/strong>Suras. Count Sura Numbers: <\/span><strong><span style=\"color: #a9a9a9;\">76*<\/span><\/strong><\/p>\n<hr \/>\n<p style=\"text-align: right;\"><span dir=\"rtl\"><big><span style=\"color: #ff8c00;\">\u0627\u0644\u0631\u062d\u064a\u0645$<\/span><\/big><\/span><\/p>\n<p>find verses which end with <strong><span style=\"font-family: tahoma,geneva,sans-serif;\">\u0627\u0644\u0631\u062d\u064a\u0645<\/span><\/strong><br \/>\n<strong><span style=\"color: #a9a9a9;\">33 <\/span><\/strong><span style=\"color: #a9a9a9;\">Entries, <strong>33 <\/strong>Verses in<strong> 19* <\/strong>Suras, count dura numbers 551*,\u00a0 Letters count of all found verses 1444*<\/span><\/p>\n<hr \/>\n<p style=\"text-align: right;\"><span style=\"color: #ff8c00;\"><big><span dir=\"rtl\">\u0644{2}<\/span><\/big><\/span><\/p>\n<p>find all double <strong><span style=\"font-family: tahoma,geneva,sans-serif;\">\u0644\u0644<\/span><\/strong><br \/>\n<span style=\"color: #a9a9a9;\">3253 Entries (3365 with Basmalah\/s ), 2147* Verses in 96 Suras<\/span><\/p>\n<hr \/>\n<p style=\"text-align: right;\"><span style=\"color: #ff8c00;\"><big><span dir=\"rtl\">[\u0628|\u0633|\u0645|\u0627|\u0644|\u0647|\u0631|\u062d|\u0646|\u064a]<\/span><\/big><\/span><\/p>\n<p>find <span lang=\"EN-US\">the<\/span> letter <strong>B <\/strong>or <strong>S <\/strong>or <strong>M <\/strong>etc <em>(letters of Basmalah)<\/em><br \/>\n<span style=\"color: #a9a9a9;\">221654* Entries (19*19*614) (223782* with Basmalah\/s* ), 6234 Verses in 114* Suras, Count Sura Numbers: 6555*<\/span><\/p>\n<hr \/>\n<p style=\"text-align: right;\"><big><span style=\"color: #ff8c00;\"><span dir=\"rtl\">[^\u0628|\u062c|\u062f|\u0648|\u0632|\u0641|\u0634|\u062a|\u062b|\u062e|\u0630|\u0636|\u0638|\u063a]<\/span><\/span><\/big><\/p>\n<p>find any letter accept <strong>B <\/strong>or <strong>G <\/strong>or <strong>D <\/strong>etc.. <em>(None initial letters)<\/em><br \/>\n<span style=\"color: #a9a9a9;\">315155 Entries (317507 with Basmalah\/s ), 6234 Verses in 114* Suras<\/span><\/p>\n<hr \/>\n<p>Searching for some unique words like Allh = <strong><span style=\"font-family: tahoma,geneva,sans-serif;\">\u0627\u0644\u0644\u0647 <\/span><\/strong>it\u00b4s important to have some knowledge about <span lang=\"EN-US\">the<\/span> different forms of this words. Some times its written LLH = <strong><span style=\"font-family: tahoma,geneva,sans-serif;\">\u0644\u0644\u0647 <\/span><\/strong>or FALLH = <strong><span style=\"font-family: tahoma,geneva,sans-serif;\">\u0641\u0627\u0644\u0644\u0647 <\/span><\/strong>or BALLH = <strong><span style=\"font-family: tahoma,geneva,sans-serif;\">\u0628\u0627\u0644\u0644\u0647 <\/span><\/strong>or WLLH = <strong><span style=\"font-family: tahoma,geneva,sans-serif;\">\u0648\u0644\u0644\u0647\u00a0 <\/span><\/strong>but <span style=\"color: #ff0000;\">not DLLH = <span style=\"font-family: tahoma,geneva,sans-serif;\">\u0636\u0644\u0644\u0647 <\/span><\/span>. The best definition we found to get all words is as follow:<\/p>\n<p style=\"text-align: right;\"><span dir=\"rtl\"><span style=\"color: #ff8c00;\"><big>( |\u0627|\u0648|\u0641|^)\u0644\u0644\u0647( |$)<\/big><\/span><\/span><\/p>\n<p><span style=\"color: #a9a9a9;\">2698* Entries (2810 with Basmalah\/s ), 1820 Verses in 85 Suras<\/span><\/p>\n<hr \/>\n<p><span style=\"color: #ff8c00;\"><big>\\b\u0627\u0644\u0642\u0631\u0621\u0627\u0646\\b<\/big><\/span><\/p>\n<p>find <span lang=\"EN-US\">the<\/span> word <strong>ALQRAAN <\/strong>exactly <span lang=\"EN-US\">the<\/span> way its written<br \/>\n<span style=\"color: #a9a9a9;\">43 Entries, 43 Verses in 28 Suras, Count Sura Numbers: 893*<\/span><\/p>\n<hr \/>\n<p><span style=\"color: #ff8c00;\"><big>\\b\u0643\u062a\u0628|\u0643\u062a\u0627\u0628\\b<\/big><\/span><\/p>\n<p>find <span lang=\"EN-US\">the<\/span> word <strong>KTB <\/strong>or <strong>KTAB <\/strong>exactly <span lang=\"EN-US\">the<\/span> way <span lang=\"EN-US\">the<\/span>y are written<br \/>\n<span style=\"color: #a9a9a9;\">102 Entries, 95* Verses in 45 Suras<\/span><\/p>\n<hr \/>\n<p style=\"text-align: right;\"><span style=\"color: #ff8c00;\"><big><span dir=\"rtl\">(\\b(\u0627\u0644|\u0648|\u0641|\u0621|\u0628)*\u0627[\u0621]*\u0644\u0647(\u0627|\u0643|\u0643\u0645|\u0646\u0627|\u0647|\u064a\u0646|\u062a|\u062a\u0647\u0645|\u062a\u064a)*\\b)|( |\u0627|\u0648|\u0641|^)\u0644\u0644\u0647( |$)|\u0627\u0644\u0644\u0647\u0645<\/span><\/big><\/span><\/p>\n<p>This one is a difficult example showing <span lang=\"EN-US\">the<\/span> roots of ALH <strong><span style=\"font-family: tahoma,geneva,sans-serif;\">\u0627\u0644\u0647 <\/span><\/strong>in all different shapes used in <span lang=\"EN-US\">the<\/span> Quran<br \/>\n<span style=\"color: #a9a9a9;\">2849 Entries, 1878 Verses in 86 Suras<\/span><\/p>\n<hr \/>\n<p style=\"text-align: right;\"><span style=\"color: #ff8c00;\"><span dir=\"rtl\"><big>[^\u0639]\u0627\u0628\u062f\u0627<\/big><\/span><\/span><\/p>\n<p>Here we need <span lang=\"EN-US\">the<\/span> word ABDA <strong><span style=\"font-family: tahoma,geneva,sans-serif;\">\u0627\u0628\u062f\u0627 <\/span><\/strong>but without <span lang=\"EN-US\">the<\/span> letter <strong><span style=\"font-family: tahoma,geneva,sans-serif;\">\u0639 <\/span><\/strong>before<br \/>\n<span style=\"color: #a9a9a9;\">28 Entries, 28 Verses in 15 Suras<\/span><\/p>\n<hr \/>\n<p style=\"text-align: right;\"><span style=\"color: #ff8c00;\"><span dir=\"rtl\"><big>\u0646[ ]*\u0648[ ]*\u0646<\/big><\/span><\/span><\/p>\n<p>This will find <span style=\"font-family: tahoma,geneva,sans-serif;\"><strong>\u064a\u0645<span style=\"color: #ff0000;\">\u0646\u0648\u0646<\/span> <\/strong><\/span>in one word or in 2 words beside each o1r<strong><span style=\"font-family: tahoma,geneva,sans-serif;\"> \u0628\u0627\u0644\u0633\u0646\u064a<span style=\"color: #ff0000;\">\u0646<\/span> <span style=\"color: #ff0000;\">\u0648\u0646<\/span>\u0642\u0635<\/span><\/strong><br \/>\n<span style=\"color: #a9a9a9;\">247* Entries, 235 Verses in 65 Suras<\/span><\/p>\n<hr \/>\n<p>To look for every verse which begins with a specified letter and ends with ano<span lang=\"EN-US\">the<\/span>r specified letter we do as follow:<br \/>\nWe search for verses that begin with Ba <span style=\"color: #0000cd;\"><strong><big>\u0628 <\/big><\/strong><\/span>and ends with Mim <span style=\"color: #0000cd;\"><strong><big>\u0645 <\/big><\/strong><\/span>like <span lang=\"EN-US\">the<\/span> Basmalah (first verse in surah 1):<\/p>\n<p style=\"text-align: right;\"><span style=\"color: #ff8c00;\"><big>^\u0628.+\u0645$<\/big><\/span><\/p>\n<p>OpenQuran finds 3 verses in such manner which consists of <strong>114 (19*6)<\/strong> letters.<\/p>\n<p>If we also search for verses that begin with Saad <span style=\"color: #0000cd;\"><strong><big>\u0635 <\/big><\/strong><\/span>and end with Nun <big><strong><span style=\"color: #0000cd;\">\u0646 <\/span><\/strong><\/big>(last verse of surah 1) we\u00b4ll find also 3 verses that have a gematrical value of <strong>9728 (19*512)<\/strong>:<\/p>\n<p style=\"text-align: right;\"><span dir=\"rtl\"><span style=\"color: #ff8c00;\"><big>^\u0635.+\u0646$<\/big><\/span><\/span><\/p>\n<p>We can also include both mehtods in one definition. For example we search for verses which begin with letter Be <span style=\"color: #0000ff;\"><strong><big>\u0628 <\/big><\/strong><\/span>or Saad <strong><span style=\"color: #0000ff;\"><big>\u0635<\/big><\/span><\/strong> and end with Mim <strong><span style=\"color: #0000ff;\"><big>\u0645 <\/big><\/span><\/strong>or Nun <strong><span style=\"color: #0000ff;\"><big>\u0646 <\/big><\/span><\/strong>:<\/p>\n<p style=\"text-align: right;\"><span style=\"color: #ff8c00;\"><span dir=\"rtl\"><big>^[\u0628|\u0635].+[\u0645|\u0646]$<\/big><\/span><\/span><\/p>\n<p>In such manner we find 46 verses which have the gematrical value of <strong>130473 (19*6867)<\/strong><\/p>\n<hr \/>\n<p>If we want to look for all words which begin with a specified letter (e.g. the letter<strong> \u0633<\/strong> )<\/p>\n<p><span style=\"color: #ff8c00;\"><big>\\b\u0633+<\/big><\/span><\/p>\n<p>Some times letters have 2 or more different shapes like <strong>Alif <\/strong>and <strong>Hamza<\/strong>. The following example will find all words begining with Alif or Hamza:<\/p>\n<p><span style=\"color: #ff8c00;\"><big>\\b[\u0627|\u0621]+<\/big><\/span><\/p>\n<hr \/>\n<p>At the begining of the verse, there must be (a word with 3 letters) than (Space) than (ALLH). same as <span style=\"font-family: tahoma,geneva,sans-serif;\">\u0628\u0633\u0645 \u0627\u0644\u0644\u0647<\/span><\/p>\n<p style=\"text-align: right;\"><big><span dir=\"rtl\"><span style=\"color: #ff8c00;\">^\\w{3} \u0627\u0644\u0644\u0647<\/span><\/span><\/big><\/p>\n<hr \/>\n<p><strong><big><span style=\"color: #000080;\"><span lang=\"EN-US\">Additional search functions<\/span><\/span><\/big><\/strong><\/p>\n<p>We also included some important functions to our search ability in Open Quran, such as:<\/p>\n<ol>\n<li><span style=\"color: #ff8c00;\"><big>count(k=2);<\/big><\/span>\u00a0 <span style=\"color: #a9a9a9;\">\/\/ find verses which have <strong>only 2 letters k<\/strong><\/span><\/li>\n<li><span style=\"color: #ff8c00;\"><big>count(k&lt;3);<\/big><\/span><span style=\"color: #a9a9a9;\"> \/\/ find verses which have <strong>2 letters k or lesser<\/strong><\/span><\/li>\n<li><span style=\"color: #ff8c00;\"><big>count(k&gt;1);<\/big><\/span> <span style=\"color: #a9a9a9;\">\/\/ find verses which have <strong>2 letters k or more<\/strong><\/span><\/li>\n<li><span style=\"color: #ff8c00;\"><big>cutspace(\u064a\u0633);<\/big><\/span> <span style=\"color: #a9a9a9;\">\/\/ verses have <strong>no spaces<\/strong> before searching for \u064a\u0633<\/span><\/li>\n<li><big><span style=\"color: #ff8c00;\">gv(l=10);<\/span><\/big><span style=\"color: #a9a9a9;\"> \/\/ find <strong>letters <\/strong>which have <strong>gematrical value of 10<\/strong><\/span><\/li>\n<li><span style=\"color: #ff8c00;\"><big>gv(w=19);<\/big><\/span> <span style=\"color: #a9a9a9;\">\/\/ find <strong>words <\/strong>which have <strong>gematrical value of 19<\/strong><\/span><\/li>\n<li><span style=\"color: #ff8c00;\"><big>gv(v=228);<\/big><\/span> <span style=\"color: #a9a9a9;\">\/\/ find <strong>verses <\/strong>which have <strong>gematrical value of 228<\/strong><\/span><\/li>\n<\/ol>\n<p>To use one of 1se functions we do as follow:<\/p>\n<p>In the search tab we press the right button to open the menu, choose &#8220;<strong>Search Unique<\/strong>&#8221; (or press <strong>Ctrl+U<\/strong>)<br \/>\na small window appears where we choose 1 function we need from 1 combo box and define our search letter\/word\/phrase<\/p>\n<p>In the count function we also define the occurence of our search<br \/>\n<strong><span style=\"color: #ff0000;\">Hint:<\/span><\/strong> Within the count(); functions we can also use Regex!<\/p>\n<p><strong><span style=\"color: #000080;\"><big>References to Regular Expressions<\/big><\/span><\/strong><\/p>\n<blockquote><p><a href=\"http:\/\/www.regular-expressions.info\/reference.html\">Regular Expression Basic Syntax Reference<\/a><\/p>\n<p><a href=\"http:\/\/www.amk.ca\/python\/howto\/regex\/\">Regular Expression HOWTO<\/a><\/p>\n<p><a href=\"http:\/\/www.addedbytes.com\/cheat-sheets\/regular-expressions-cheat-sheet\/\">Regular Expressions Cheat Sheet (V2)<\/a><\/p>\n<p><a href=\"http:\/\/www.amazon.com\/s\/ref=nb_sb_ss_i_0_7?url=search-alias%3Dstripbooks&amp;field-keywords=regular+expressions&amp;x=0&amp;y=0&amp;sprefix=regular\">BOOKS TO REGULAR EXPRESSIONS<\/a><\/p><\/blockquote>\n<p>If you have any question regarding RegEx in Openquran than we are glad to help but please forgive my bad english<\/p>\n<p>Salam<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Regular Expressions (abbreviation: RegEx) are signs which built in an intelligent and easy to understand system. We have the ability to use this system in Openquran and improve our work much faster and even exactly. If users of OpenQuran doing research to the counts and calculations of Letters\/words\/verses and there [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1183,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1181","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-koran-uebersetzung"],"_links":{"self":[{"href":"https:\/\/hanif.de\/index.php?rest_route=\/wp\/v2\/posts\/1181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hanif.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hanif.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hanif.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hanif.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1181"}],"version-history":[{"count":3,"href":"https:\/\/hanif.de\/index.php?rest_route=\/wp\/v2\/posts\/1181\/revisions"}],"predecessor-version":[{"id":1185,"href":"https:\/\/hanif.de\/index.php?rest_route=\/wp\/v2\/posts\/1181\/revisions\/1185"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hanif.de\/index.php?rest_route=\/wp\/v2\/media\/1183"}],"wp:attachment":[{"href":"https:\/\/hanif.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hanif.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hanif.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}