How to find # tag in a string


void main() {
String strWithNum = """
Hubble is hiring!

Hubble is looking for a Community Manager to join their talented team.

💻 Community Manager
🌍 Remote
🕒 Contract, Full-Time, Part-Time

Apply now 👇cryptocurrencyjobs.co/customer-suppo... #blockchainjobs #cryptojobs
""";
  List a = strWithNum.split(' ');
  for(var x in a){
    if(x[0].startsWith(RegExp(r'#'))){
      print(x);
    }
  }
}

Post a Comment

Previous Post Next Post

Subscribe Us


Get tutorials, Flutter news and other exclusive content delivered to your inbox. Join 1000+ growth-oriented Flutter developers subscribed to the newsletter

100% value, 0% spam. Unsubscribe anytime