i get it, i think, like how when u type a & in a label it underscores the text. Why the hell don't u just put a - in the label instead of /
ok so the title isn't very clear but here is what i need to do(i have searched im not sure if i searched right because i don't really know what to type but) i want it so if there is a / in a label it will turn the / into a -
thanks in advance even if u can't help me.
i get it, i think, like how when u type a & in a label it underscores the text. Why the hell don't u just put a - in the label instead of /
~Mohandas GandhiA man is but the product of his thoughts what he thinks, he becomes.
~ ImmortalA Genius is nothing with out an idea, An idea is always an idea even without a genius.
label1.text.replace("/", "-") ????
If you need to replace multiple items, then use the following format:Code:Label1.Text = Label1.Text.Replace("/","-")
...Code:Label1.Text = Label1.Text.Replace("A",a").Replace("B","b").Replace("C","c")
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
No shit lol, I just like Regex and giving Hassan shit 'cos he forgot a lot of it
Although I do like this function, very VERY occasionally comes in handy :P
[php]
Private Function ReplaceText(ByVal original As String, ByVal replaceWhat() As String, ByVal replaceWith() As String, ByVal ignorecase As Boolean) As String
If replaceWha*****unt = replaceWith.Count Then
For i As Integer = 0 To replaceWha*****unt - 1
If ignorecase Then
original = original.ToLower.Replace(replaceWhat(i).ToLower, replaceWith(i).ToLower)
Else
original = original.Replace(replaceWhat(i), replaceWith(i))
End If
Next
Else
MsgBox("arrays not the same size")
End If
Return original
End Function
'...
textBox1.Text = ReplaceText(TextBox1.Text, New String() {"A", "B", "C", "D"}, New String() {"x", "y", "z", "w"}, false)
[/php]
(Yes i'm procrastinating from study)
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
() denotes an array, so the function requires you to pass 2 string arrays into it. (thought you would know something basic like this)
i.e
things to replace{"hello", "this", "is", "a", "test""}
replace with (same order as first array) {"i", "höpe", "this", "works", "good"}
hello will be replaced with "i"
"this" will be replaced with "hope"
"is" will be repaced with "This"
...etc
Easy way of replacing multiple things.
As a sidenote, regex is useful for a lot more than filtering emails etc...there are many many cases where it can be extremely useful.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
'Bruno (10-25-2010)
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)