Skip to content

Commit 1805ada

Browse files
authored
Create find # tag in a string.dart
1 parent c172d1e commit 1805ada

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

find # tag in a string.dart

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
void main() {
2+
String strWithNum = """
3+
Hubble is hiring!
4+
5+
Hubble is looking for a Community Manager to join their talented team.
6+
7+
💻 Community Manager
8+
🌍 Remote
9+
🕒 Contract, Full-Time, Part-Time
10+
11+
Apply now 👇cryptocurrencyjobs.co/customer-suppo... #blockchainjobs #cryptojobs
12+
""";
13+
List a = strWithNum.split(' ');
14+
for(var x in a){
15+
if(x[0].startsWith(RegExp(r'#'))){
16+
print(x);
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)