-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to replace "/"? (How to express a forward slash as a literal charactrer?) #2737
Comments
Using If your format string is not particularly complex, or only contains The potential problem here is that this can only applied to entire format strings and not just a single replacement field.
Well, you could use the or you convert the boolean True/False to a string first and replace its values accordingly: |
This worked great, thanks! And I don't even know how to use the |
a global option, that servers as a workaround for shortcomings due to lack of a proper format string parser
In other news, I've added a global option that lets you change the character used as argument separators (74865ad). Set |
Still no way to limit it to just some extractors/postprocessors/strings? alternatively: how could I write a regex expression for Notepad++ to find all the / used as format-separator in my config? |
No, still no way to do that and there most likely never will be. Just use f-strings. They work very similar to regular format strings in basic cases and allow for a lot more control when you want to transform values.
Post your format strings and I'll convert them for you if you can't do it yourself. |
Nvm, I was able to do it myself by searching them with |
I need to replace
<br />
in Pixiv's 'caption'. I tried{caption:R<br />//}
with no success.EDIT:
Also, is there any way to replace a "True" value? On Reddit, I would like "is_original_content" in a given field to be converted to "OC" when its value is True. With
is_original_content:?OC://
I got "OC:True", but that's not ideal.The text was updated successfully, but these errors were encountered: