How to exclude a few words from a string field returned from an api response in ReactJS

im trying to exclude a few words from an api string that was returned. I did research on this and saw that people were using REGEX(regular expressions) for this. I tried to copy what they did, however, with api responses, it adds another level of difficulty to it and is not quite the same.

enter image description here

Is there a way to exclude the "Messari Daily Brief" from the api and include everything else? Im trying to grab everything from that title field but the Messari Daily Text.

I tried store the string like this

const title = this.props.newsItems.title;

Then I tried to do the regex:

const extractedString = '/Messari Daily Brief /'

Thanks for taking the time to read this!

90 thoughts on “How to exclude a few words from a string field returned from an api response in ReactJS”

  1. 900466 952662I must spend some time studying much more or understanding more. Thanks for wonderful info I used to be looking for this information for my mission. 471877

    Reply
  2. i need education loan, i need loan please help me. i need a private loan lender need loan i need a loan now need loan but i am not working, cash advance payday loans, cash advance loans, cash advances, cash advance loans reviews. Investment will spark commerce, internationally active.

    Reply
  3. pharmacie de garde joinville le pont formation therapie act lyon pharmacie ouverte blois , medicaments cholesterol therapie de couple yutz , pharmacie de garde aujourd’hui oujda pharmacie de garde forbach therapie de couple poitiers UroXatral acheter, UroXatral prix sans ordonnance [url=https://www.bark.com/fr/fr/company/uroxatral-prix-sans-ordonnance-uroxatral–acheter/aN81w/#]UroXatral prix sans ordonnance[/url] UroXatral acheter UroXatral prix France. pharmacie lafayette instagram pharmacie de garde aujourd’hui jette Logiciel Roxio Easy Media Creator Suite 10 au meilleur prix, Ou acheter du Roxio Easy Media Creator Suite 10 [url=https://faithlife.com/roxioeasymediacreatorsuite10prixbelgique#]Acheter licence Roxio Easy Media Creator Suite 10[/url] Roxio Easy Media Creator Suite 10 prix Belgique Acheter licence Roxio Easy Media Creator Suite 10. pharmacie de la poste argenteuil numero therapies systemiques , pharmacie leclerc anet medicaments beta bloquant Zestril prix sans ordonnance, Achat Zestril bon marchГ© [url=https://www.bark.com/fr/fr/company/zestril-sans-ordonnance-en-ligne-zestril-prix-sans-ordonnance/mQ7eo/#]Zestril [/url] Zestril livraison rapide Zestril acheter. therapies naturelles pharmacie leclerc etalondes .

    Reply

Leave a Comment