Quantcast
Viewing all articles
Browse latest Browse all 27055

Question Using String Replace

Hello all,

I have to convert an Email address before I search a database. I have to Change the (.) Period to an (_) Underscore before I search and the string replace changes ALL the periods to underscore.

I need to replace the period in the Name and not in the .COM


This (Some.one@here.com) needs to be (some_one@here.com)

Using the replace method it turns into this

some_one@here_com

Is there a way to change the first occurrence only?

-NJ

Viewing all articles
Browse latest Browse all 27055

Trending Articles



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