Att försöka lära sig översätta från mänskliga översättningsexempel.
Från professionella översättare, företag, webbsidor och fritt tillgängliga översättningsdatabaser.
säännöllinen lauseke elementin tyypin etsintään. mallia etsitään definitionrx tuloksesta ja ensimmäinen saadussa alueessa on elementin tyyppi. (yksinkertaistettu) esimerkki: definitionrx=\\ $+ ([a- za- z] +) =uusi\\\\ s[ a- za- z] +; typerx=uusi\\\\ s ([a- za- z] +); tämä osuu teksteihin $fooobj=uusi foo;. nyt tätä tekstiä etsitään ja se löytyy uusi foo;, missä foo on ensimmäinen löydetty teksti (säännöllinen lauseke osuu foo aaltosulkujen välissä). niinpä $fooobj tyyppi on foo.
regular expression to find the type of the element. the pattern is searched on the result of the definitionrx match and the first captured area will hold the element type. example (simplified): definitionrx=\\$+([a-za-z]+)=new\\\\s[a-za-z]+; typerx=new\\\\s([a-za-z]+); this will match strings like $fooobj=new foo;. now this string is searched and it will find new foo;, where foo is the first captured text (the regular expression matching foo is between brackets). so the type of $fooobj is foo.