Delete mycode.
#1
Hi, can someone create for me a delete Mycode? So whatever text you enter in [delete] gets wiped?
I'm not here often, shoot a PM or whatever if you want my discord.
Reply
#2
MyCode:
\[delete\](.*?)\[/delete\]
Replacement:
<span style="display: none;">$1</span>

I don't understand why you would want this but there you go.
Reply
#3
That wouldn't wipe it; by quoting or viewing the source it'd still be there.
Perhaps you could have it as some kind of censor, meaning that if something matched the regex of [delete](.*)[/delete], it'd replace it with a single space.
Reply
#4
But I still don't see why you would want that code you could just remove the line?
Reply
#5
(2010-04-06, 08:04 AM)Prentice Wrote: But I still don't see why you would want that code you could just remove the line?

For new threads i am going to have a posting template. I don't want parts to stay though.
I'm not here often, shoot a PM or whatever if you want my discord.
Reply
#6
oh I see... Sorry I don't know that.
Reply
#7
Just do this:

Regex:
[delete](.*&)[/delete]

Replacement:
Just a space.
Reply
#8
(2010-04-06, 06:10 PM)Tierney Wrote: Just do this:

Regex:
[delete](.*&)[/delete]

Replacement:
Just a space.

Thank you.
I'm not here often, shoot a PM or whatever if you want my discord.
Reply
#9
(2010-04-06, 11:42 PM)41shots Wrote:
(2010-04-06, 06:10 PM)Tierney Wrote: Just do this:

Regex:
[delete](.*&)[/delete]

Replacement:
Just a space.

Thank you.

No problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)