a = "focus"
r = Regex("$(a)\\s*:\\s*true")
ismatch(r, "# focus: true")
pfitzseb
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Can I interpolate a string in a regular expression? | 3 | 2340 | May 7, 2018 | |
| Regex interpolation | 1 | 98 | November 5, 2025 | |
| Using Regex() function, how do I match the end of the string? | 4 | 278 | December 10, 2024 | |
| How to read a string from a file with interpolation | 7 | 1885 | October 7, 2020 | |
| Expression interpolation | 7 | 1123 | January 17, 2020 |