search for: aeiou

Displaying 10 results from an estimated 10 matches for "aeiou".

2008 Feb 03
4
Extract vowels and consonants using Ruby Regex
Hello, I am trying to build a regex to extract vowels and consonants from a string. So far, I am able to extract the basic a-e-i-o-u sequence using the following extension to the String class: class String def vowels scan(/[aeiou]/i) end def consonants scan(/[^aeiou]/i) end end examples: >> "Mary had a little lamb".vowels => aaaiea >> "Mary had a little lamb".consonants => mryhdlttllmb However, the regex does not accommodate the conditional treatment of ''y'...
2024 Mar 01
1
gsub issue with consecutive pattern finds
Hi Iago, This is not a bug. It is expected. Patterns may not overlap. However, there is a way to get the result you want using perl: ```R gsub("([aeiouAEIOU])(?=[aeiouAEIOU])", "\\1_", "aerioue", perl = TRUE) ``` The specific change I made is called a positive lookahead, you can read more about it here: https://www.regular-expressions.info/lookaround.html It's a way to check for a piece of text without consuming it...
2024 Mar 01
1
gsub issue with consecutive pattern finds
Hi Iris, Thank you. Further, very nice solution. Best, Iago On 01/03/2024 12:49, Iris Simmons wrote: > Hi Iago, > > > This is not a bug. It is expected. Patterns may not overlap. However, there > is a way to get the result you want using perl: > > ```R > gsub("([aeiouAEIOU])(?=[aeiouAEIOU])", "\\1_", "aerioue", perl = TRUE) > ``` > > The specific change I made is called a positive lookahead, you can read > more about it here: > > https://www.regular-expressions.info/lookaround.html > > It's a way to check for...
2024 Mar 01
1
gsub issue with consecutive pattern finds
...PERL type matching. The idea: separate the two vowels in the regex by a character that you know cannot appear (if there is such) and match it optionally, e.g. with '*" repetition specifier. I used "?" for the optional character below (which must be escaped). > gsub("([aeiouAEIOU])\\?*([aeiouAEIOU])", "\\1_\\2", "aerioue") [1] "a_eri_ou_e" Cheers, Bert On Fri, Mar 1, 2024 at 3:59?AM Iago Gin? V?zquez <iago.gine at sjd.es> wrote: > > Hi Iris, > > Thank you. Further, very nice solution. > > Best, > > Iag...
2010 Nov 30
1
Compiling ocfs2-tools-1.6.3 on slackware64-13.1
...39; collect2: ld returned 1 exit status make[1]: *** [fsck.ocfs2] Error 1 make[1]: Leaving directory `/tmp/SBo/ocfs2-tools-1.6.3/fsck.ocfs2' make: *** [fsck.ocfs2] Error 2 Any help would be appreciated Thx, Jose Leal --------------------------------------------------- Venha conhecer o novo AEIOU: http://www.aeiou.pt
2024 Mar 01
1
gsub issue with consecutive pattern finds
Hi all, I tested next command: gsub("([aeiouAEIOU])([aeiouAEIOU])", "\\1_\\2", "aerioue") with the following output: [1] "a_eri_ou_e" So, there are two consecutive vowels where an underscore is not added. May it be a bug? Is it expected (bug or not)? Is there any chance to get what I want (an underscore...
2009 Jan 22
4
text vector clustering
Hi, I am a new user of R using R 2.8.1 in windows 2003. I have a csv file with single column which contain the 30,000 students names. There were typo errors while entering this student names. The actual list of names is < 1000. However we dont have that list for keyword search. I am interested in grouping/cluster these names as those which are similar letter to letter. Are there any
2013 Mar 20
2
Pattern match
Hello again, in the help page of grep() function, it is written that pattern: character string containing a regular expression (or character string for fixed = TRUE) to be matched in the given character vector. Coerced by as.character to a character string if possible. If a character vector of length 2 or more is supplied, the first element is used with a warning. Missing values are allowed
2008 Mar 12
4
authentication number at the end of the number before calls go through.
Hi, I need to create a simple number checking for authorizing the calls. if a person dial 91800555121212345 where 12345 is the authorization code. If the authorization code is correct the call will go through if not it will play something saying wrong authorization code or just hangup. This my dialplan to get the authorization code AUTH=12345 exten => _9.,1,Answer() exten =>
2003 May 20
0
De um amigo
...05 NIB : 0030 0338 00200029605 35 E-mail : rmrsc at clix.pt 5.Ana Maria G. - B.E.S. Agencia - 0239 Conta nr :2391 6086 0006 NIB :0007 0239 0016 0860 00656 E-mail:amrip at hotmail.com 6.M. da Concei??o R. - B.E.S. Agencia - 0239 Conta nr. 2391 6086 4818 NIB :000702390016086481873 E-mail:maconce at aeiou.pt Obs.: Imprima essa lista. Importante: Repare que todos os nomes que constam da lista nao estao completos. Esse anonimato e propositado. Tem a finalidade de preservar as pessoas e, ao mesmo tempo, cumprir um ritual de varias tradicoes espirituais: "Fazer o Bem sem olhar a Quem". Faca...