Top "String-interpolation" questions

String interpolation is the replacement of defined character sequences in a string by given values.

How to use verbatim strings with interpolation?

In C# 6 there is a new feature: interpolated strings. These let you put expressions directly into code. Rather than relying …

c# string-interpolation c#-6.0 verbatim-string
C# string interpolation-escaping double quotes and curly braces

guys, I'm building a JSON object from an interpolated string, and not getting how escaping works. I have to use …

c# string-interpolation
In bash, how do I interpolate $(...) in a string?

I am attempting to write a bash script that performs a mysqldump on my live site's database, then adds and …

bash shell string-interpolation
Using a Variable (PowerShell) inside of a command

$computer = gc env:computername # Argument /RU '$computer'\admin isn't working. SchTasks /create /SC Daily /tn "Image Verification" /ST 18:00:00 /TR …

powershell variables string-interpolation quoting
Ruby: eval with string interpolation

I don't understand, why eval works like this: "123 #{456.to_s} 789" # => "123 456 789" eval('123 #{456.to_s} 789') # => 123 How can I …

ruby string eval string-interpolation
Kotlin: How do I get characters after "@" in a string?

I have a string that is an email. I want to be able to get the domain part of the …

android string kotlin substring string-interpolation
How to postpone/defer the evaluation of f-strings?

I am using template strings to generate some files and I love the conciseness of the new f-strings for this …

python python-3.x string-interpolation python-3.6 f-string
C# interpolated string with conditional-operator

I tried to use the conditional operator inside an interpolated string, but because it has a colon in it, the …

c# conditional-operator string-interpolation
Specifying locale for string interpolation in C#6 (Roslyn CTP6)

String interpolation in C#6 lets me write: decimal m = 42.0m; string x = $"The value is {m}"; However, a very common …

c# roslyn c#-6.0 string-interpolation
python string interpolation

What could generate the following behavior ? >>> print str(msg) my message >>> print unicode(msg) …

python string string-interpolation