Skip to content

Feature Request: String (and Regex) replacement in Incept #163

Open

Description

@salmelo

Possibly one of the most powerful things you can currently do with JS and not Incept is string replacement, especially with Regex. (Tho I'd probably expect Incept to use .NET's regex flavor and not JS's)

An example from my current project, where I bold everything before the first colon on each line and double the line spacing at hard line breaks, as well as convert from '\n' in the spreadsheet to
for the formatted text:

var txt = text.replace(/^(.+?):/gm,"<b>$1:</b>");
txt.replaceAll('\n',"<ls=50><br></ls>")

I'd be willing to help implement this but I don't really want to give myself the responsibility of deciding on the syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions