User Tools

Site Tools


iab:commands:string

iab!string

Default Permission Tier: 0

Performs different operations on a string

Aliases: string

Replace

Aliases: replace

Yes, if you thought replace was extremely similar to this, it actually does just change the command to iab!string replace and reparses it.

Parameters

a: The token to remove

b: The token to insert

content: Optional: The string to work on. If unspecified, the previous message's content is used.

Examples

iab!string replace a, b, content

iab!string replace i, e, wiki ⇒ weke

iab!string replace a, oy, this sentence demonstrates how the replace command works ⇒ this sentence demonstroytes how the reployce commoynd works

iab!string replace a, oy ⇒ (the previous message, but with all 'a' replaced with 'oy')


Reverse

Aliases: reverse

Reverses a string.

Parameters

content: Optional: The string to work on. If unspecified, the previous message's content is used.

Examples

iab!string reverse content

iab!string reverse this is a sentence. ⇒ .ecnetnes a si siht esrever

iab!string reverse ⇒ (the previous message, reversed)


Capitalize

Aliases: capitalize, cap

Changes the capitalization of a string.

Parameters

-cap: The type of capitalization to use. Valid values are LOWERCASE, UPPERCASE

-content: Optional: The string to work on. If unspecified, the previous message's content is used.

Examples

iab!string capitalize -cap (capitalization) -content (content)

iab!string capitalize -cap uppercase -content this is how capitalize works. ⇒ THIS IS HOW CAPITALIZE WORKS.

iab!string capitalize -cap lowercase -content ThIs Is HoW CaPiTalizE WoRKS. ⇒ this is how capitalize works.

iab!string capitalize -cap lowercase ⇒ (the previous message, but in all lowercase.)


iab/commands/string.txt · Last modified: 2021/03/05 21:23 by nuyube