Quantcast
Channel: CodeProject Latest postings for Regular Expressions
Viewing all articles
Browse latest Browse all 224

Regular Expression To Extract Everything Including the String And Before The First Space Character

$
0
0
Hi all,

I have a string "Gender: Female Race: American Asian". I would like to extract the following substring from this string.

"Gender: Female"

Any suggestions how I could accomplish this?

Thanks,
Ana

Viewing all articles
Browse latest Browse all 224

Trending Articles



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