in ,

youCannotEscapeThem

youCannotEscapeThem | java-memes, regex-memes, string-memes, IT-memes, bot-memes | ProgrammerHumor.io
java-memes, regex-memes, string-memes, IT-memes, bot-memes | ProgrammerHumor.io

[text] WEHEARDYOULIKEESCARESEQUENCES Alright..after banging my head against a wall for getting the right escape patterns to satisfy both java and ffmpeg came up with this 12 MyDrawTextString.replaceALCWW W. replaceAtll SO replaceAllCs . replaceAll SN V Looks insane but it works Note hiad to double my backslashes in my answer here to get this to display correctly too P Dang those backslashes. The key is ffmpeg drawtext needs 3 backslashes to escape and single quotes need to also be wrapped in a second pair of single quotes. Java String needs 2 backslashes to make one and java replaceAll regex needs to have 2 backslashes to make a single one in a string. Therefore you need 223 backslashes to escape things in drawtext filter string OB INVOURESCAPE