Re: Get text "literally" from a TextBox
- From: "Freddy Coal" <freddycoal@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 3 Jul 2008 08:41:49 -0500
Cor and Patrice, thanks for the answer; I know the regular expressions, but
my problem is how get the pattern string if the user put that in a Textbox.
I would like get the chain the same way that when you write in Vb.Net, for
example:
Dim User_Pattern as string = "Hello" & chr(65) & chr(135)
If I make that in Vb.Net, I get in the User_Pattern: "HelloAç"
But if the user put in a Textbox: "Hello" & chr(65) & chr(135) , and I get
that in a chain (textbox.text), I obtain:
""Hello" & chr(65) & chr(135)"
Obviously, if I use that like a pattern, the regex don't replace anything,
because he search for all the string, not for the ascii characters for 65
(A) and 135 (ç),
maybe I can depure my string, but exist another especial "characters" like
vbcrlf, or when the user put strange characters with the keyboard Alt+##.
Exits a command of make a trim "comiles" in a string variable?
Thanks in advance.
Freddy Coal.
"Patrice" <http://www.chez.com/scribe/> wrote in message
news:uVROIwP3IHA.1196@xxxxxxxxxxxxxxxxxxxxxxx
Be aware that any regular expression is very much slower then any direct
method as you don't need more than 10 methods.
Yes that's why I suggested looking at the VS IDE that allows to switch
regular expression support on or off as needed....
For now it looks a bit weird to me to use a VB.NET expression to enter
characters that are easily entered using the keyboard (and you also have
the Alt-<Num code> keys sequence or you could call charmap) so instead of
using vb.net expressions to enter characters I would use just what the
user entered using the keyboard and would let the user to activate regular
expression when needed (for example to signal the end of the line if this
is what vbCrLf is intended for in the sample).
--
Patrice
.
- Follow-Ups:
- Re: Get text "literally" from a TextBox
- From: Patrice
- Re: Get text "literally" from a TextBox
- From: Christiano
- Re: Get text "literally" from a TextBox
- References:
- Get text "literally" from a TextBox
- From: Freddy Coal
- Re: Get text "literally" from a TextBox
- From: Patrice
- Re: Get text "literally" from a TextBox
- From: Cor Ligthert [MVP]
- Re: Get text "literally" from a TextBox
- From: Patrice
- Get text "literally" from a TextBox
- Prev by Date: Re: .INI in VB.Net?
- Next by Date: Re: Change Content page from Master page
- Previous by thread: Re: Get text "literally" from a TextBox
- Next by thread: Re: Get text "literally" from a TextBox
- Index(es):
Relevant Pages
|