Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72388

Function which removes html color from a string with sscanf

$
0
0

I've a big dilemma how can I do a condition to remove this type of color from my string (ex: {dd2e22}) using sscanf, which is only func I want to use. So the string provided will be some random text:

Te{dd2e22}xt is {3f53ec}here

The condition what I tried

sscanf(buf,"%[^\{[0-9a-fA-F]{6,8}\}]s",output);

This isn't working, the result are only first character "T".


Viewing all articles
Browse latest Browse all 72388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>