File tree 2 files changed +6
-6
lines changed
9-regular-expressions/10-regexp-greedy-and-lazy/4-find-html-tags-greedy-lazy
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
2
- The solution is ` pattern:<[^<>]+> ` .
2
+ সমাধানটি হল ` pattern:<[^<>]+> ` ।
3
3
4
4
``` js run
5
5
let regexp = / <[^ <>] + >/ g ;
Original file line number Diff line number Diff line change 1
- # Find HTML tags
1
+ # এইচটিএমএল ট্যাগের অনুসন্ধান
2
2
3
- Create a regular expression to find all (opening and closing) HTML tags with their attributes .
3
+ একটি প্যাটার্ন লিখুন যেন সকল এইচটিএমএল ট্যাগগুলো(অ্যাট্রিবিউটসহ) খুঁজে পায় .
4
4
5
- An example of use :
5
+ উদাহরণস্বরূপ :
6
6
7
7
``` js run
8
- let regexp = / your regexp / g ;
8
+ let regexp = / আপনার প্যাটার্ন / g ;
9
9
10
10
let str = ' <> <a href="/"> <input type="radio" checked> <b>' ;
11
11
12
12
alert ( str .match (regexp) ); // '<a href="/">', '<input type="radio" checked>', '<b>'
13
13
```
14
14
15
- Here we assume that tag attributes may not contain ` < ` and ` > ` (inside squotes too), that simplifies things a bit.
15
+ এখানে কিছুটা সহজের জন্য আমরা ধরে নিয়েছি অ্যাট্রিবিউটের মাঝে এই দুটি বন্ধনী ` < ` এবং ` > ` থাকবে না।
You can’t perform that action at this time.
0 commit comments