Skip to content

Commit 4ecd603

Browse files
committed
translation wip task-4
1 parent f7e94cc commit 4ecd603

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

9-regular-expressions/11-regexp-groups/04-parse-expression/solution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
A regexp for a number is: `pattern:-?\d+(\.\d+)?`. We created it in previous tasks.
1+
সংখ্যা খুঁজার রেগুলার এক্সপ্রেশন: `pattern:-?\d+(\.\d+)?`। যা আমরা পূর্বের টাস্কে করেছিলাম।
22

3-
An operator is `pattern:[-+*/]`. The hyphen `pattern:-` goes first in the square brackets, because in the middle it would mean a character range, while we just want a character `-`.
3+
অপারেটর হল `pattern:[-+*/]`. হাইফেন `pattern:-` অবশ্যই ব্রাকেটের শুরুতে হতে হবে, কেননা মাঝে হলে এটি দ্বারা ক্যারাক্টারের রেঞ্জ বুঝায়, যেখানে আমরা `-` কে ক্যারাক্টার হিসেবে দেখতে চায়।
44

55
The slash `/` should be escaped inside a JavaScript regexp `pattern:/.../`, we'll do that later.
66

9-regular-expressions/11-regexp-groups/04-parse-expression/task.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# Parse an expression
1+
# এক্সপ্রেশনকে পার্স
22

3-
An arithmetical expression consists of 2 numbers and an operator between them, for instance:
3+
একটি গাণিতিক সমীকরণে দুটি নাম্বার এবং তাদের মাঝে একটি গাণিতিক চিহ্ন আছে, যেমন:
44

55
- `1 + 2`
66
- `1.2 * 3.4`
77
- `-3 / -6`
88
- `-2 - 2`
99

10-
The operator is one of: `"+"`, `"-"`, `"*"` or `"/"`.
10+
গাণিতিক চিহ্নগুলো হল: `"+"`, `"-"`, `"*"` অথবা `"/"`
1111

12-
There may be extra spaces at the beginning, at the end or between the parts.
12+
এখানে সমীকরণের শুরুতে,মাঝে এবং শেষে অতিরিক্ত স্পেস থাকতে পারে।
1313

14-
Create a function `parse(expr)` that takes an expression and returns an array of 3 items:
14+
একটি ফাংশন লিখুন যা `parse(expr)` একটি সমীকরণ নিবে এবং তাদের কে একটি অ্যারের ৩ টি উপাদান হিসেবে রিটার্ন করবে:
1515

16-
1. The first number.
17-
2. The operator.
18-
3. The second number.
16+
১. প্রথম সংখ্যাটি।
17+
২. গাণিতিক চিহ্নটি।
18+
৩. দ্বিতীয় সংখ্যাটি।
1919

20-
For example:
20+
যেমন:
2121

2222
```js
2323
let [a, op, b] = parse("1.2 * 3.4");

0 commit comments

Comments
 (0)