We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Drafts/Language("Find what:", "Replace with:")

From Esolang
Jump to navigation Jump to search
This is still a work in progress. It may be changed in the future.
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Language("Find what:", "Replace with:") is a W.I.P. in the string-rewriting paradigm. The design is influence by Notepad++'s Find and Replace feature.

Header

# Comments follow the # symbol

Footer

The first line of output is removed; comments are ignored.
EOF = "End of file."

Examples

Javascript

Language("Find what:", "Replace with:")

Find("\r\n", "Replace with:")
Replace("");\r\nconsole.log("")
Find("EOF", "Replace with");
Replace("");"")

Output

Hello, World!");
console.log("Hello, World!");

Python

Language("Find what:", "Replace with:")

Find("\r\n", "Replace with:")
Replace("");\r\nprint("")
Find("EOF", "Replace with");
Replace("");"")

Output

Hello, World!");
print("Hello, World!");

External Resources