<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://regexblogs.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Regular Expression...someday</title><subtitle type="html">about my impression/hope on regular expression</subtitle><id>http://regexblogs.com/blogs/mastering_regex/atom.aspx</id><link rel="alternate" type="text/html" href="http://regexblogs.com/blogs/mastering_regex/default.aspx" /><link rel="self" type="application/atom+xml" href="http://regexblogs.com/blogs/mastering_regex/atom.aspx" /><generator uri="http://communityserver.org" version="2.1.60809.935">Community Server</generator><updated>2006-07-10T15:32:00Z</updated><entry><title>A regular expression is ...</title><link rel="alternate" type="text/html" href="http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx" /><id>http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx</id><published>2008-06-03T02:11:00Z</published><updated>2008-06-03T02:11:00Z</updated><content type="html">&lt;p&gt;&lt;a href="http://www.000webhost.com/53210.html" target="_blank"&gt;&lt;img src="http://www.000webhost.com/images/banners/468x60/banner13.gif" alt="Free Web Hosting with Website Builder" width="468" border="0" height="60" /&gt;&lt;/a&gt;

&lt;/p&gt;&lt;a href="http://www.000webhost.com/53210.html" target="_blank"&gt;&lt;/a&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt; I still didn&amp;#39;t really understand the meaning of &amp;#39;regular&amp;#39;. What is regular language? why they are regular? and how regular is regular? Because the word &amp;#39;regular&amp;#39; is too ambiguous to be understood. Is it really mean &amp;#39;regular&amp;#39;? Is it similar in meaning with &amp;#39;regular&amp;#39; in &amp;#39;&lt;i&gt;i&amp;#39;m his regular customer&amp;#39;&lt;/i&gt;? or does it refer to something else? I already red the book by Arto Salooma (Jewels of Formal Language Theory). What i can understand is regular expression is a regular pattern to identify regular language, and regular language is a language that can be accepted by DFA. But i&amp;#39;m still have something in my instinct that keep saying this is not the complete answer (for sure it is not Salomaa&amp;#39;s fault, since he&amp;#39;s a REGULAR in formal theory!). So i&amp;#39;m still keep searching to complete my record...&lt;br /&gt;&lt;br /&gt;&lt;p style="font-weight:bold;"&gt;[ Update: 29th August 2008]&lt;/p&gt;&lt;p&gt;

Now i understand what is &amp;#39;regular&amp;#39; -
a pattern or procedure. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;in accordance with fixed order or procedure or
principle; &amp;quot;his regular calls on his customers&amp;quot;; &amp;quot;regular meals&amp;quot;;
&amp;quot;regular duties&amp;quot; &lt;/li&gt;&lt;li&gt;regular(a): often used as intensifiers; &amp;quot;a regular morass of details&amp;quot;; &amp;quot;a regular nincompoop&amp;quot;; &amp;quot;he&amp;#39;s a veritable swine&amp;quot;  &lt;/li&gt;&lt;li style="font-weight:bold;"&gt;conforming to a standard or pattern; &amp;quot;following the regular procedure of the legislature&amp;quot;; &amp;quot;a regular electrical outlet&amp;quot;  &lt;/li&gt;&lt;li&gt;regularly scheduled for fixed times; &amp;quot;at a regular meeting of the PTA&amp;quot;; &amp;quot;regular bus departures&amp;quot;  &lt;/li&gt;&lt;li style="font-weight:bold;"&gt;in accord with regular practice or procedure; &amp;quot;took his regular morning walk&amp;quot;; &amp;quot;her regular bedtime&amp;quot;  &lt;/li&gt;&lt;li&gt;even: occurring at fixed intervals; &amp;quot;a regular beat&amp;quot;; &amp;quot;the even rhythm of his breathing&amp;quot;  &lt;/li&gt;&lt;li&gt;relating to a person who does something regularly; &amp;quot;a regular customer&amp;quot;; &amp;quot;a steady drinker&amp;quot;  &lt;/li&gt;&lt;li&gt;(used of the military) belonging to or engaged in by legitimate army forces; &amp;quot;the regular army&amp;quot;  &lt;/li&gt;&lt;li&gt;(of solids) having clear dimensions that can be measured; volume can be determined with a suitable geometric formula  &lt;/li&gt;&lt;li&gt;unconstipated: not constipated  &lt;/li&gt;&lt;li&gt;a regular patron; &amp;quot;an habitue of the racetrack&amp;quot;; &amp;quot;a bum who is a Central Park fixture&amp;quot;  &lt;/li&gt;&lt;li&gt;even: symmetrically arranged; &amp;quot;even features&amp;quot;; &amp;quot;regular features&amp;quot;; &amp;quot;a regular polygon&amp;quot;  &lt;/li&gt;&lt;li&gt;a soldier in the regular army  &lt;/li&gt;&lt;li&gt;not deviating from what is normal; &amp;quot;her regular bedtime&amp;quot;  &lt;/li&gt;&lt;li&gt;a dependable follower (especially in party politics); &amp;quot;he is one of the party regulars&amp;quot;  &lt;/li&gt;&lt;li&gt;officially full-time; &amp;quot;regular students&amp;quot;  &lt;/li&gt;&lt;li&gt;a garment size for persons of average height and weight  &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;font size="-1"&gt;&lt;li&gt;&lt;a href="http://www.google.com.my/url?sa=X&amp;amp;start=0&amp;amp;oi=define&amp;amp;q=http://wordnet.princeton.edu/perl/webwn%3Fs%3Dregular&amp;amp;usg=AFQjCNECfplxnD_GUeiq9VIehXQUbhS_Pw"&gt;&lt;font color="#008000"&gt;wordnet.princeton.edu/perl/webwn&lt;/font&gt;&lt;/a&gt;&lt;/li&gt;&lt;/font&gt; &lt;br /&gt;I&amp;#39;m
sure this definition
would we sufficient to understand what is regular expression. Why i&amp;#39;m
saying it is a pattern? Well, regular expression describe a pattern of
a language. It is a procedure&amp;nbsp; because regular expression is a
&amp;#39;procedure&amp;#39; or steps on how to recognize a language (i&amp;#39;m referring
&amp;#39;steps&amp;#39; as sequence of characters trail). Basically we can convert
regular expression into automaton to recognize regular language
(Navarro et al, 2002:pp 77). It seems not so difficult to transform
regular pattern into automata. But i haven&amp;#39;t try it, hopefully soon.&lt;/p&gt;&lt;p&gt;A language is regular if there is an automata or FSA that can accept it - wiki. One can build an automata using transition diagram or transition table. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href="http://www.000webhost.com/53210.html" target="_blank"&gt;________________________________________________&lt;/a&gt; &lt;/p&gt;&lt;p style="font-weight:bold;"&gt;&lt;img src="http://regexadvice.com/emoticons/emotion-44.gif" alt="Coffee" /&gt;&amp;nbsp;References: &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Navarro, Gonzalo, Raffinot, Mathiu (2002) Flexible Pattern Matching in Strings. Cambridge University Press.&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://www.000webhost.com/53210.html" target="_blank"&gt;&lt;img src="http://www.000webhost.com/images/banners/468x60/banner13.gif" alt="Free Web Hosting with Website Builder" width="468" border="0" height="60" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx&amp;amp;;subject=A+regular+expression+is+..." target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx&amp;amp;;title=A+regular+expression+is+..." target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx&amp;amp;title=A+regular+expression+is+..." target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx&amp;amp;;title=A+regular+expression+is+..." target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx&amp;amp;;title=A+regular+expression+is+...&amp;amp;;top=1" target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2008/06/03/A-regular-expression-is-a-regular-pattern-to-identify-regular-language.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexblogs.com/aggbug.aspx?PostID=42850" width="1" height="1"&gt;</content><author><name>M.Yunus.S</name><uri>http://regexblogs.com/members/M.Yunus.S.aspx</uri></author></entry><entry><title>A good stripper is a perfect matcher...</title><link rel="alternate" type="text/html" href="http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx" /><id>http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx</id><published>2008-05-29T02:16:00Z</published><updated>2008-05-29T02:16:00Z</updated><content type="html">&lt;a href="http://www.000webhost.com/53210.html" target="_blank"&gt;&lt;img src="http://www.000webhost.com/images/banners/468x60/banner13.gif" alt="Free Web Hosting with Website Builder" border="0" height="60" width="468" /&gt;&lt;/a&gt;
&lt;p&gt;&lt;img src="http://regexadvice.com/emoticons/emotion-13.gif" alt="Angel" /&gt; This page is about regular expression, not sexual content! &lt;img src="http://regexadvice.com/emoticons/emotion-13.gif" alt="Angel" /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;A good regular expression should be seen as a beautiful stripper. They have solid body, very attractive, &amp;#39;hot&amp;#39; and really don&amp;#39;t think twice to strip their body (and others!) to search for a perfect match. They swallow everything, test anything (am i gone too far?) just to catch what they&amp;#39;re supposed to looked for - the perfect match (the matching pattern). Unfortunately, this &amp;#39;stripper&amp;#39; have weakness. If we make any mistake, even a simple &amp;#39;.&amp;#39;, in the pattern,we won&amp;#39;t get anything. Because it is discrete, using bit-to-bit matching. The advantage is, we just name it (correctly), we got it instantly!&lt;/p&gt;
&lt;p&gt;The problem with creating regular expression (regex) is they&amp;#39;re quite complex to build. Even for a seasoned programmer, they&amp;#39;ll easily make mistake. So, it is a much needed effort to create a tool that can auto generate regex pattern. Some try to use natural language, WYSIWYG etc but unfortunately, regex is not suitable to be described using natural language or any of these approaches, because they will (surely) make the notation loose its expressiveness...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So what we should do?&lt;/p&gt;
&lt;p&gt;For now, i&amp;#39;m still asking this question to myself (and others). ...&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;a href="http://www.000webhost.com/53210.html" target="_blank"&gt;&lt;img src="http://www.000webhost.com/images/banners/468x60/banner13.gif" alt="Free Web Hosting with Website Builder" border="0" height="60" width="468" /&gt;&lt;/a&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx&amp;amp;;subject=A+good+stripper+is+a+perfect+matcher..." target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx&amp;amp;;title=A+good+stripper+is+a+perfect+matcher..." target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx&amp;amp;title=A+good+stripper+is+a+perfect+matcher..." target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx&amp;amp;;title=A+good+stripper+is+a+perfect+matcher..." target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx&amp;amp;;title=A+good+stripper+is+a+perfect+matcher...&amp;amp;;top=1" target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2008/05/29/A-good-stripper-is-a-perfect-matcher_2E002E002E00_.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexblogs.com/aggbug.aspx?PostID=42717" width="1" height="1"&gt;</content><author><name>M.Yunus.S</name><uri>http://regexblogs.com/members/M.Yunus.S.aspx</uri></author></entry><entry><title>Regular expression as a programming language. Is it possible?</title><link rel="alternate" type="text/html" href="http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx" /><id>http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx</id><published>2006-07-10T07:32:00Z</published><updated>2006-07-10T07:32:00Z</updated><content type="html">&lt;a href="http://www.000webhost.com/53210.html" target="_blank"&gt;&lt;img src="http://www.000webhost.com/images/banners/468x60/banner13.gif" alt="Free Web Hosting with Website Builder" width="468" border="0" height="60" /&gt;&lt;/a&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;I began to learn about regular expression about 3 years ago. I was at that time, never heard about, or even expect to know such a thing. I was asked to learn Perl to solve some Bioinformatics work, and in my mind i don&amp;#39;t have any regex knowledge, except mathematical statements like x = { y| y is subset of z}, or&amp;nbsp; y = {1,2,3}, and some basic knowledge of Z-language. Although the math statements did not closely resembles the regular expression statements that are used in programming language, its foundation is still a &amp;#39;regular expression&amp;#39; (since regular expression is about stating the regular behavior of the item that we want to specify). We assure y = {1,2,3} by /[1-3]/. Anyway, from that point of time, i began to learn Perl, and slowly i was introduced to m// operator, s/// and tr/// (text processing requires a massive use of these operators).&lt;br /&gt;
&lt;br /&gt;
What i like about regular expression is its compactness. Techniques for simplifying codes have been explored long time before. One approach is by using function (which is eventually another concept that come from math). Using function (or some use the word subroutine), we manage to reduce codes, and simplify them just by calling their name instead of rewriting the same codes. Almost with a similar purpose in mind, we use regex to simplify complex requirements, which is by representing a set of rules within a simple statement, i.e. /a-z/. One should realize that we are representing many lines of codes within a single statement. Just imagine, using regular expression as programming language, a million lines of codes can be turned into just several lines of codes (or symbols).&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;m also believe that regular expression can possibly be a language that is easier to remember, and can be written faster. This because in regular expression we use simple symbols to represent (possibly) complex rules. It have been proved that our brains can (easily) remember things that we see visually compared to the things that are written or touched. Also human brains will capture things in graphical form. Based on this fact, isn&amp;#39;t it possible that we can remember some simple symbols more faster than to remember huge amount of text? Also since we only need to write symbols, it will not take us a long time to write the codes in regular expression (unless for complex rules).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regular expression is specified using a finite set of symbols, such as &amp;#39;?&amp;#39; to represent existence, &amp;#39;+&amp;#39; to represent repetition etc, make it looks more encrypted. Programming language was created to bring computer language (machine language) more closer to the natural language, so that it will become easier for people to write codes to be computer programs. Based on this fact, it seem impossible for encrypted code like regular expression to be accepted as one of high programming language.However, it is not an excuse. Even most of programming language today require some comments to clarify its purpose, or explain what the code does. People might claims that some high level language is already self-explained (the codes explains its purpose). However many of us will found that this statement is not true for all cases. When a section of codes becomes so complex, even the most proclaimed self-explanatory language require at least few comments to describe the codes. Some of todays implemented regular expressions allows comments to be included in the regular expression statement. So it is not encrypted at all when the regular expression are combined with some extra comments. In implementation, no different in code size since comments will be ignored.&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;m just writing the general ideas of how regular expression can possibly be a programming language here. There&amp;#39;s still a lot of things that need to be considered, studied and experimented with. But I&amp;#39;m still hoping for this idea to become true.&lt;br /&gt;
&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;b&gt;[ update 29th May 2008 ]&lt;/b&gt;&lt;br /&gt;


&lt;p&gt;I&amp;#39;ve come across a few paragraphs in a book and some articles which seems related (unfortunately some information on the reference details are missing):&lt;/p&gt;







&lt;p&gt;&amp;#39;... If the level of programming language is low compared to the level of the problem it has to cope with, it is extremely difficult for a programmer to write an effective program, The design of programming language is primarily concerned with the reduction of the gap between these levels. ...&amp;#39;&lt;br /&gt;Too high difference between programming language and the target machine will results (1) software unreliability, (2) lowering machine efficiency, (3) excessive program size and (4) increase compiler complexity&amp;nbsp; &lt;b&gt;(Ichikawa, 1992)&lt;br /&gt;&lt;/b&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;A notation must be readable. &amp;#39;... with proper choice of vocabulary the notation can be quite readable. ...&amp;#39;&lt;br /&gt;
&lt;br /&gt;
&amp;#39;... A natural, readable notation results from combining non-symbolic operator names with a right-associative infix syntax, and comma and colon rules that suppress many parentheses. ...&amp;#39;&amp;nbsp;&amp;nbsp; &lt;b&gt;(MacLennan, B.J. - &lt;i&gt;A Simple, Natural Notation For Applicative Languages&lt;/i&gt;&lt;/b&gt;)&lt;br /&gt;
&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;
&amp;#39;... Notation that is efficient and preferred is more appropriate. ...&amp;#39;&lt;br /&gt;
&amp;#39;... English like notation not necessarily improve programming skill. ...&amp;#39; &lt;b&gt;(Wright et al, 2005)&lt;br /&gt;
&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;
&amp;#39;... Once the asymptotic notation is defined in terms of sets, it is only natural to manipulate it using set notation . If &amp;quot;the equal sign really means set inclusion&amp;quot;, why not use set inclusion? ...&amp;#39;&lt;br /&gt;
&amp;#39;... The proposed switch to set theory would be intolerable if it resulted in a net decrease in expressive power. ...&amp;#39;&lt;br /&gt;
&amp;#39;... using a notation closer to the natural property. ...&amp;#39;&amp;nbsp; &lt;b&gt;(Brassard, Gilles. - &lt;i&gt;Crusade For A Better Notation&lt;/i&gt;&lt;/b&gt;)&lt;br /&gt;
&lt;/p&gt;





&lt;p&gt;&lt;br /&gt;
&amp;#39;... Notation suited as a tool of thought in any topic should permit easy introduction in the context of that topic. ...&amp;#39;&lt;br /&gt;&amp;lsquo;... The utility of a language as a tool of thought increases with the range of topics it can treat, but decreases with the amount of vocabulary and the complexity of grammatical rules which the user must keep in mind. Economy of notation is therefore important. ...&amp;rsquo;&lt;br /&gt;&amp;lsquo;... Economy requires that a large number of ideas be expressible in terms of relatively small vocabulary. ...&amp;rsquo;&lt;br /&gt;&amp;lsquo;... The subjects of mathematical analysis and computation can be represented in a variety of ways, and each representation may posses particular advantages. ...&amp;rsquo; &lt;b&gt;(Iverson, 1980)&lt;/b&gt;&lt;br /&gt;
&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;
&amp;#39;The primary purpose of notation is communication&amp;#39; - &lt;b&gt;Patashnik, O.&lt;/b&gt;&lt;br /&gt;
&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;[ update 12th June 2008 ]&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;I&amp;#39;m thinking about the advantage of natural (written) language over mathematical notations (and vice versa). Since (most) natural language statements can be simplified using mathematical notation e.g. like &amp;#39;one plus two is equal to three&amp;#39; and &amp;#39;1+2=3&amp;#39;. But somehow there&amp;#39;s a situation where mathematical notations gets longer than natural language. For example (unfortunately i can&amp;#39;t show the mathematical expression), when we need to describe the relations of elements between sets, i found it is more convenient to describe it using simple sentence. But i arrive at a conclusion that, this &amp;#39;advantages&amp;#39; over another is simply because there are no simple notation in either languages (neither natural nor mathematical) to describe the semantics of another language. If we need to describe certain aspect of a language (X), in another language (Y), we must define a notation (in Y) which describe the semantic described by other language (X) in similar fashion, which is as precise and understandable (same complexity in interpretation) as the original (X). So when we convert into the target language (Y), we gets a &amp;#39;similar&amp;#39; complexity with the original (X), but with a new notation.&lt;/p&gt;

&lt;p&gt;This idea basically was applied in regex to natural language, except with a different complexity. This complexity increased because regex tends to describe a pattern (many characteristics and semantics in a minimum notation) of natural text, not directly one-to-one interpretation (i mean the whole expression, not the symbol). If we want to allow regex to be able to describe a semantic of program (or as programming language), there should be many (not all) one-to-one correspondence between regex statement and computer program command. &lt;/p&gt;

&lt;p&gt;Well, that&amp;#39;s all. I haven&amp;#39;t found anymore idea than this (yet!)&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &lt;a href="http://www.000webhost.com/53210.html" target="_blank"&gt;________________________________________________&lt;/a&gt; &lt;/p&gt;&lt;p style="font-weight:bold;"&gt;&lt;img src="http://regexadvice.com/emoticons/emotion-44.gif" alt="Coffee" /&gt;&amp;nbsp;References: &lt;/p&gt;

&lt;p&gt;Ichikawa.eds (1992) &lt;i&gt;Language Architecture and Programming Environment&lt;/i&gt;. World Scientific Publishing. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Iverson, K. E. (1980) &lt;span style="font-style:italic;"&gt;Notation as a tool of thought&lt;/span&gt;. Communication of the ACM. Vol 23:8 pg 444-465&lt;/p&gt;&lt;p&gt;Wright, T., Cockburn, A. (2005) &lt;i&gt;Evaluation of Two Textual Programming Notations for Children&lt;/i&gt;.
6th Australasian User Interface Conference (AUIC2005), Newcastle.
Conferences in Research and Practice in Information Technology, Vol 40. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;a href="http://www.000webhost.com/53210.html" target="_blank"&gt;&lt;img src="http://www.000webhost.com/images/banners/468x60/banner13.gif" alt="Free Web Hosting with Website Builder" width="468" border="0" height="60" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx&amp;amp;;subject=Regular+expression+as+a+programming+language.+Is+it+possible%3f" target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx&amp;amp;;title=Regular+expression+as+a+programming+language.+Is+it+possible%3f" target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx&amp;amp;title=Regular+expression+as+a+programming+language.+Is+it+possible%3f" target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx&amp;amp;;title=Regular+expression+as+a+programming+language.+Is+it+possible%3f" target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx&amp;amp;;title=Regular+expression+as+a+programming+language.+Is+it+possible%3f&amp;amp;;top=1" target="_blank" title = "Post http://regexblogs.com/blogs/mastering_regex/archive/2006/07/10/Regular-expression-as-a-programming-language.-Is-it-possible_3F00_.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexblogs.com/aggbug.aspx?PostID=19428" width="1" height="1"&gt;</content><author><name>M.Yunus.S</name><uri>http://regexblogs.com/members/M.Yunus.S.aspx</uri></author></entry></feed>