|
1 |
| -# Find quoted strings |
| 1 | +# স্ট্রিংয়ে উক্তি খুঁজা |
2 | 2 |
|
3 |
| -Create a regexp to find strings in double quotes `subject:"..."`. |
| 3 | +একটি রেগুলার এক্সপ্রেশন লিখুন যা স্ট্রিংয়ে উক্তি খুঁজে `subject:"..."`। |
4 | 4 |
|
5 |
| -The strings should support escaping, the same way as JavaScript strings do. For instance, quotes can be inserted as `subject:\"` a newline as `subject:\n`, and the slash itself as `subject:\\`. |
| 5 | +স্ট্রিংটি অবশ্যই জাভাস্ক্রিপ্ট স্ট্রিংয়ের মত এস্কেপিং সাপোর্ট করবে, উক্তিটির মধ্যে উদ্ধৃতি চিহ্ন `subject:\"` বা নিউলাইন ক্যারাক্টার থাকবে `subject:\n` এবং স্ল্যাশ `subject:\\` থাকবে। |
6 | 6 |
|
7 | 7 | ```js
|
8 | 8 | let str = "Just like \"here\".";
|
9 | 9 | ```
|
10 | 10 |
|
11 |
| -Please note, in particular, that an escaped quote `subject:\"` does not end a string. |
| 11 | +আমাদের মনে রাখা উচিত যে, উক্তির মাঝে উদ্ধৃতি চিহ্ন থাকলে `subject:\"` তা দ্বারা বুঝায় উক্তিটি শেষ হয়নি। |
12 | 12 |
|
13 |
| -So we should search from one quote to the other ignoring escaped quotes on the way. |
| 13 | +সুতরাং অনুসন্ধানের সময় আমাদের উক্তির মাঝে এস্কেপিং উদ্ধৃতি চিহ্নগুলোও খুঁজতে হবে। |
14 | 14 |
|
15 |
| -That's the essential part of the task, otherwise it would be trivial. |
| 15 | +এটিই আমাদের এই টাস্কের জন্য কঠিন অংশ, অন্যথায় এটি একটি সহজ টাস্ক। |
16 | 16 |
|
17 |
| -Examples of strings to match: |
| 17 | +উদাহরণস্বরূপ এইগুলো দেখুন: |
18 | 18 | ```js
|
19 |
| -.. *!*"test me"*/!* .. |
20 |
| -.. *!*"Say \"Hello\"!"*/!* ... (escaped quotes inside) |
21 |
| -.. *!*"\\"*/!* .. (double slash inside) |
22 |
| -.. *!*"\\ \""*/!* .. (double slash and an escaped quote inside) |
| 19 | +.. *!*"test me"*/!* .. |
| 20 | +.. *!*"Say \"Hello\"!"*/!* ... (উক্তির ভেতরে এস্কেপিং উদ্ধৃতি চিহ্ন) |
| 21 | +.. *!*"\\"*/!* .. (উক্তির ভেতরে দুটি স্ল্যাশ) |
| 22 | +.. *!*"\\ \""*/!* .. (উক্তির ভেতরে দুটি স্ল্যাশ এবং এস্কেপিং উদ্ধৃতি চিহ্ন) |
23 | 23 | ```
|
24 | 24 |
|
25 |
| -In JavaScript we need to double the slashes to pass them right into the string, like this: |
| 25 | +জাভাস্ক্রিপ্টে স্ট্রিংয়ের মাঝে ডাবল স্ল্যাশ এভাবে লিখতে হবে: |
26 | 26 |
|
27 | 27 | ```js run
|
28 | 28 | let str = ' .. "test me" .. "Say \\"Hello\\"!" .. "\\\\ \\"" .. ';
|
|
0 commit comments