regexstringcharacterobsidianobsidian-dataview

Remove certain characters in a string


I have this is text or markdown format file in windows 10.

i want to use replace all command to replace t=25s, t=95s, t=180s with t=25, t=95, t-180. I need to get rid of s

What command can i do in regex find/replace to achieve the above. Thanks

I have access to regex find/replace plugin or search & replace in obsidian. I cant figure out the command.


Solution

  • Like @hNczy mentioned, you can use the Regex community plugin for jobs like this. Install it, press Ctrl + P and search for regex to open the plugin. You can give it a hotkey if you want.

    The expression in your comment works perfectly:

    Regex plugin

    Just replace with $1 instead of \1. The command above deletes the blue sections below:

    Regex example