expresiones regulares y similitudes foneticas

07/03/2005 - 18:13 por walter | Informe spam
hola alguien sabe donde puedo encontrar informacion de
como usar las expresiones regulares para encontrar
similitudes foneticas entre dos palabras ?

Saludos,

Walter

Preguntas similare

Leer las respuestas

#1 José Luis
07/03/2005 - 20:57 | Informe spam
hola
encontre en l red algo
espero que te sirva
encuentra un numero dentro de una cadena de textbox:
la cadena es:akjsdi sd8902jdklsqpoeou. cuando se preciona el boton buscar
esta el siguiente codigo.

' This routine handles the "Find the Number!" button Click event. It finds
the
' first number in a character string and displays the number and its
starting
' position in the string.
Private Sub btnFindNumber_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnFindNumber.Click
' Create an instance of RegEx and pass in the pattern, which will
find one
' or more digits.
Dim re As New Regex("\d+")
' Call Match, passing in the source text.
Dim m As Match = re.Match(txtFindNumber.Text)

' If a match is found, show the results. If not, display an "error"
message.
If m.Success Then
lblResults.Text = String.Format("RegEx found " & _
m.Value & " at position " & m.Index.ToString)
Else
lblResults.Text = "You didn't enter a string containing a number!"
End If
End Sub

"walter" wrote:

hola alguien sabe donde puedo encontrar informacion de
como usar las expresiones regulares para encontrar
similitudes foneticas entre dos palabras ?

Saludos,

Walter

Respuesta Responder a este mensaje
#2 Angel. E. Ruiz. Pastor
08/03/2005 - 00:28 | Informe spam
Amigo no te srive el Operado Like?

Dim myCheck As Boolean
myCheck = "F" Like "F" ' Does "F" match "F"? Returns True.
myCheck = "F" Like "f" ' Does "F" match "f"? Returns False.
myCheck = "F" Like "FFF" ' Does "F" match "FFF"? Returns False.
myCheck = "aBBBa" Like "a*a" ' Does "aBBBa" have a "a" at the
' beginning, an "a" at the end, and any number of characters in
' between? Returns True.
myCheck = "F" Like "[A-Z]" ' Does "F" occur in the set of
' characters from A to Z? Returns True.
myCheck = "F" Like "[!A-Z]" ' Does "F" NOT occur in the set of
' characters from A to Z? Returns False.
myCheck = "a2a" Like "a#a" ' Does "a2a" begin and end with an
' "a" and have any single-digit number inbetween? Returns True.
myCheck = "aM5b" Like "a[L-P]#[!c-e]" ' Does "aM5b" fit the following
' pattern: Begins with "a", has and character from the set L through
' P, followed byb any single-digit number, and finally contains any
' character excluded from the character set c through e. Returns True.
myCheck = "BAT123khg" Like "B?T*" ' Does "BAT123khg" fit the
' following pattern: Begins with "B", followed by any single
' character, followed by a "T" and finally zero or more characters
' of any type. Returns True.
myCheck = "CAT123khg" Like "B?T*" ' Does "CAT123khg" fit the
' following pattern: Begins with "B", followed by any single
' character, followed by a "T" and finally zero or more characters
' of any type. Returns False.


Characters in pattern Matches in string
? Any single character
* Zero or more characters
# Any single digit (0-9)
[charlist] Any single character in charlist
[!charlist] Any single character not in charlist

Saludos cordiales,
Ángel Ruiz
MCP C#
MVP de Visual Basic desde el 2004
Caracas - Venezuela
"El conocimiento es un bien, que crece a medida que se comparte"
"walter" escribió en el mensaje
news:50fc01c52338$f95b2d10$
hola alguien sabe donde puedo encontrar informacion de
como usar las expresiones regulares para encontrar
similitudes foneticas entre dos palabras ?

Saludos,

Walter
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida