Converting email or web address into *****

I am trying to convert email or web address into *****
text=text.replaceAll(".com","*****");
text=text.replaceAll(".net","*****");
text=text.replaceAll(".org","*****");it replace .com and without com as well e.g. if there is company, network or organization it also change without caring dot?
          text1=text1.replaceAll("www","http://www");
          text1=text1.replaceAll("www1","http://www1");
          text1=text1.replaceAll("(?:ht|f)tp://\\S+(?<![!.?])", "<a href=\"#\" target=\"_blank\">*****</a>");but I can not control e.g. hotmail.com or yahoo.com or kkk.com
is there any simple way to convert email or web address into *****
thanks & regards

farakh wrote:
prometheuz wrote:
Far from perfect to say the least (watch out for false positives!), but it might give you some new ideas:
        String text = "My e-mail address id [email protected] and you can find my "+
"website at http://somesite.co.uk, ok?";
String domainRegex = "[\\w]+(([.][\\w]+){1,2})";
String emailRegex = "[\\w]+@"+domainRegex;
String siteRegex = "(https?://)?(www[.])?"+domainRegex;
text = text.replaceAll(emailRegex+"|"+siteRegex, "*****");
System.out.println(text);Good luck.
this code changes the following also that shouldn't be:
SS201/202/304/316 tube.carbon pipe, fittings.
converts SS201/202/304/316 ***** pipe, fittings.
and how can v solve this problem?
my website is yahoo dot com
and my email is kk at hotmail dot com
thanks & regardsLike I said: the code is far from perfect and will probably produce false positives (as you already mentioned). Try to play with it so that it suits your needs.

Similar Messages

  • I use to drag and drop an web address into a link toolbar, can't seem to figure out how to do this...?

    I just upgraded to Windows 7 and with it I got the latest Firefox. There is nothing like learning 2 things at one time. On my old XP and 3.? all I have to do was drag and drop a web address into a link toolbar. Saving all my frequent visited or just sights I want quick access to, to a toolbar quick button. I have been playing with this for days and decided to try this Forum. I did find the Bookmark toolbar, but cant seem to figure out what is if for or if you can drop into it. When I right click it and Customize, it shows me add on buttons, but nothing to do with web addresses or alike...
    Bottom line; I want to be able to drag and drop a web address into a toolbar for recall latter and be able to edit the address with a right click at a latter date in necessary...
    Thanks, Mike

    You can drag and drop the favicon also known as the [https://support.mozilla.com/en-US/kb/Site+Identity+Button site identity button], at the left hand edge of the location bar onto a toolbar to bookmark the site.

  • Typing web address into browser not working

    I type into browser box the web address I want to go to and then press enter. Firefox browser does not go to the web address, it does not respond. I type www.wsj.com and then press "enter" on keyboard or cursor link on the arrow and Firefox browser does not go to that web address. It remains motionless. I have to type the web address into a search engine box in order to get to the web address I want to go to.

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • Detecting email and web address from textarea

    I want that if the user is putting email or web address in the text area that should be held and not be shown.
    any clue please
    thanks

    regex?
    A quick and crude attempt (completely untested):
    // email
    "\\s*[^@]+@[^\\s]+"
    // web
    "\\s*https?://[\\s]+"
    thanks for your reply and if i wanna add (dot, com, at) then?
    thanks again

  • Allowing visiters to leave email or web address?

    I am very new to iweb but on my last blog[non iweb] when a person left a comment they also could leave their email and web address. I found this very handy for answeriing questions or responding to comments. I also enjoyed visiting my reader's sites. Does iweb allow this? If so I haven't figured out how to set it up and would appreciate any help....

    Ah I see that now on the web site itself but not from iweb~ my last blog I could see comments and their name was hyperlinked to website and also I could reply to them directly from comment on my template. Now I can link to their websites from mine[not iweb itself] and there is no email them back function... unless I am missing something?

  • When I type a web address into the main bar, it takes me to search results rather than to the website as in Firefox 3. What can I do here?

    As stated above, when I would enter a web address in the main bar at the top of Firefox, the browser would go directly to that website (e.g., nytimes, or pcmag, etc...).
    Now it goes to a search results page, where I have to click on NY Times, or PC Mag, to get to the website. It is a two-step process instead of one!

    hello, enter '''about:config''' into the firefox location bar (confirm the info message in case it shows up) & search for the preference named '''browser.urlbar.trimURLs'''. double-click it and change its value to '''false''' in order to display the full url with the http://-prefix in the address bar...

  • How do I convert a Expression Web template into Dreamweaver CC?

    Just got the Adobe CC subscription they said I could convert an Expression Web site template to Dreamweaver?  It has a file master.dwt that has the common header, footer and menu

    Thanks, Dick - that helps. Save this code into the Templates folder at the root of the site. Name the saved file with a *.dwt extension. Let me know when you've done that and I'll tell you what to do next.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta name="google-site-verification" content="n0PVQVe6Cs8EI5p0bjR5h5NxRpxwYuGqalb63SvPRaI" />
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Hotchkiss Sheep Camp  Stock Dog Trials </title>
        <meta name="description" content="Home page for the Hotchkiss Sheep Camp  Stock Dog Trials held in Hotchkiss Colorado on Mother's Day weekend in May"/>
        <meta name="keywords" content="Hotchkiss Sheep Camp, Stock Dog Trials, Hotchkiss, Colorado, SheepWagon, Sheep, herding dog,  Border Collie"/>
    <!-- TemplateEndEditable -->
    <link href="styles/style2.css" media="screen" rel="stylesheet" title="CSS" type="text/css" />
    <link rel="stylesheet" href="cssmenutools/scripts/MTHM1.css" type="text/css" />
    <style type="text/css">
    .auto-style1 {
      margin: 10px;
    .auto-style3 {
      vertical-align: middle;
    </style>
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body style="width: 98%; background-color: #FFFFFF;">
    <form id="form1" runat="server">
        <!-- Begin Container --><div id="container" style="left: 10px; top: 1px; background-color: #FFFFFF;">
      <!-- Begin Masthead -->
      <!-- End Masthead -->
      <!-- Begin Navigation -->
        <div id="masthead" style="border-bottom-color: #E1F3FB; border-color: #BCE1FC; height: 162px; background-color: #BCE1FC; border-left-color: #BCE1FC; border-top-color: #BCE1FC; border-right-color: #BCE1FC;">
      <img alt="Hotchkiss Sheep Camp" height="75" src="images/Hotchkiss%20Logo.jpg" width="294" class="auto-style1" />
      <object type="application/x-shockwave-flash" data="HotchkissSheepCamp2.swf" width="358" height="159" align="right"><param name="movie"
      value="HotchkissSheepCamp2.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="play"
      value="true" /><param name="loop" value="true" /><param name="wmode" value="window" /><param name="scale" value="showall" />
      <param name="menu" value="true" /><param name="devicefont" value="false" /><param name="salign" value="" /><param name="allowScriptAccess"
      value="sameDomain" /><!--<![endif]-->
      <a href="http://www.adobe.com/go/getflash">
      <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="358" height="159" />
      </a>
      <!--[if !IE]-->
      </object>
       <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="358" height="159" id="HotchkissSheepCamp2" align="right">
      <param name="movie" value="HotchkissSheepCamp2.swf" />
      <param name="quality" value="high" />
      <param name="bgcolor" value="#ffffff" />
      <param name="play" value="true" />
      <param name="loop" value="true" />
      <param name="wmode" value="window" />
      <param name="scale" value="showall" />
      <param name="menu" value="true" />
      <param name="devicefont" value="false" />
      <param name="salign" value="" />
      <param name="allowScriptAccess" value="sameDomain" />
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
      </object>
         </div>
      <div id="MTHMWUHHfGCDiv" class="MTHMWUHHfGCwrapper"><div id="MTHMWUHHfGCTop" class="MTHMWUHHfGCtop"><div class="MTHMWUHHfGCtopmiddle"><ul><li class="MTHMWUHHfGCitem1" style="margin-left:0px"><a href="index.html"><span>Home</span></a></li><li class="MTHMWUHHfGCitem2"><a href="#"><span>We Are</span></a></li><li class="MTHMWUHHfGCitem2"><a href="#"><span>Handler's Area</span></a></li><li class="MTHMWUHHfGCitem2"><a href="#"><span>General Information</span></a></li><li class="MTHMWUHHfGCitem2"><a href="#"><span>Trials Art</span></a></li><li class="MTHMWUHHfGCitem2"><a href="#"><span>Area Amenities</span></a></li><li class="MTHMWUHHfGCitem2"><a href="#"><span>Shopping</span></a></li></ul></div></div><script type="text/javascript" src="cssmenutools/scripts/MTHM1.js">/* MTHMMenu script ID:MTHMWUHHfGC */</script></div>
      <!-- End Navigation -->
      <!-- Begin Page Content -->
      <div id="page_content">
      <!-- Begin Left Column -->
      <div id="column_l" style="left: 0px; top: 0px; background-color: #FFFFFF; width: 96%;">
      <!-- TemplateBeginEditable name="content" -->
      <h2 style="width: 99%; position: relative; left: -20px; top: 0px; color: #000000; font-size: xx-large; font-family: 'Arial Black';">Headline 2</h2>
      <p style="z-index: 1; width: 1712px; height: 19px; position: absolute; top: 53px; left: 10px">insert content here</p>
      <!-- TemplateEndEditable --></div>
      <!-- End Left Column -->
      <!-- Begin Right Column -->
      <div id="column_r" style="width: 22%; background-color: #FFFFFF;">
      <!-- TemplateBeginEditable name="sidebar" -->
      <h3 style="width: 375px; background-color: #FFFFFF; color: #000000;">Headline 3</h3>
      <p>insert content here</p>
      <!-- TemplateEndEditable --></div>
      <!-- End Right Column --></div>
      <!-- End Page Content -->
      <!-- Begin Footer -->
      <div id="footer">
      <p style="border-bottom-color: #DCEFFC; border-color: #BCE1FC; width: 98%; background-color: #BCE1FC; border-left-color: #BCE1FC; border-right-color: #BCE1FC; border-top-color: #BCE1FC; color: #000000;">
      <br />
      <img alt="USBCA" height="150" src="images/usbcha-logo-200.gif" style="float: left" width="118" class="auto-style3" /><br />
      <br />
      <br />
      Last Updated  May 20, 2014<br />
      Copyright &copy; 2014 Hotchkiss Sheep Camp Stock Dog Trials.  All Rights Reserved.<br />
      <br />
      <br />
      <br />
      <br />
      Powered by
      Solutions Ark</p>
      </div>
      <!-- End Footer --></div>
    <!-- End Container -->
    </form>
      </body>
      </html>

  • Copy pasting web address into emails on iPad

    I use to be all to be looking at a web page and select all, copy, and then paste the URL in an email on my iPad. When I do it now when I paste nothing shows up. How can I copy and then paste URL in my email.
    Thanks
    Rick

    Welcome to the discusssions.
    Touch a spot in the URL in the browser address bar until you see the magnifying glass (as though you're going to fix a typo). When you let go, you should see the Select All option appear, then after you tap that, copy. It's a bit tricky because the keyboard keeps popping up, but just ignore that.
    Then go to your email, hold down where you want to put the URL till you see the magnifying glass, then let go and you should see paste.

  • How do I convert email and all attachments into pdf?

    I have multiple emails with attachments that need to be converted to PDF.  Using Adobe Pro 11 I can create an email that is pdf with the attachments embedded in their original format, but not as pdf.  I can "un-embed" the attachments and convert to pdf, but I really would like to do it all at once.  I used another program previously that worked pretty well, but now the powers that be decided that we could no longer use it as it was not supported.
    After selecting a group of emails, here is what I would like to be able to produce:
    1) Each email is put into an individual folder. In each folder is a pdf of the email, and a pdf of each of the attachments.
    2) Each email and its attachments is converted with the attachments becoming part of the file - producing a long pdf document with the email message followed  by the attachments. I was able to do this using the program Message Export which we no longer support.
    3) Each email becomes a pdf and the attachments become embedded after they were converted to pdf files.
    Any ideas are welcome.  Below is what I am currently able to produce.
    Thanks.
    Kevin
    Example:  Email message below has multiple file types
    I can convert it to PDF, but the attachments stay in their original format, and I need them to be converted to pdf.

    Hi Tom F
    Please Refer : http://help.adobe.com/en_US/acrobat/X/pro/using/WS9C160D36-D4E6-4ac5-B27E-48E2FF6CDE52.w.h tml

  • My 2 week old ipad randomly shuts down and sometimes will not let me type web address into browser.

    Sometimes my ipad will just restart itself (the screen goes black, and the apple icon appears and then it's back on). The battery will be higher than 50%. Also, when this is occurring frequently, the web browser will not let me type an address in. When I tap on the address bar it sends me back to my home screen. It will connect to the internet during this time, so I know it's not a internet connection problem.

    When in doubt, reboot.  Press and hold the sleep and power buttons until the apple logo appears.  Ignore the red slider.  You may simply be overwhelming the memory.  From time to time, doulbe click on the home button to see the task bar.  Touch and hold any of those icons until they jiggle, then delete them by touching the minus sign.

  • Hi I am typing a web address into the navagation bar and nothing is happening any suggestions

    I can click on a bookmark and I can navigate to a website, however when I type in an address nothing happens. This just started. Please help!

    Hi cowtan, <br/>Sorry you are having problems with the awesome bar.
    I imagine the new behaviour may be reversed by changing some pref but I have not looked that up.
    Regardless of the new behaviour you seem to have some fault as my awesomebar still gives bookmarked items.
    As a troubleshooting step try adding an asterisk in the awesomebar (as first character or anywhere) that should then filter the results in the dropdown list to bookmarked only items, does that work ?
    * see [[Search your bookmarks, history and tabs with the Awesome Bar#w_changing-results-on-the-fly]]_changing-results-on-the-fly
    You possibly have some extension interfering with the awesome bar, try Firefox in safe mode (but do NOT* at this stage try the Reset Firefox option)
    <nowiki>*</nowiki>'''edit''' - personal opinion, if a user; such as you; is knowledgeable enough to use ''about.config'' the easy solution of ''FirefoxReset ''is probably not the best route, as it can have unwanted side effects that are avoidable.
    * [[Troubleshoot Firefox issues using Safe Mode]]
    Do your bookmarked items appear in safe mode ?
    <u>Try a new Profile.</u><br/>The best method for troubleshooting this will be to set up a new Firefox profile, you can then: experiment, troubleshoot, alter settings or extensions installed in that profile without changing and potentially damaging your current profile.
    * http://kb.mozillazine.org/Profile_Manager#Creating_a_new_profile
    I suggest to prevent unexpected problems you
    * use a sensible name such as test 2012 for the profile name
    * ensure an empty folder is used & do not then rename or delete the new profile (instead add or delete shortcuts to it)
    * also see http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • Can I receive emails from 2 different addresses into a single account using TB?

    I want to combine all emails from both addresses into a single account in TB.
    I have already tried adding the 2nd account using "Manage Identities" but it did not work for me. The default is gmail and the 2nd is not.

    Can you explain this?
    I found this on Mozilla site. But, in my updated TB, i can find no such thing as a "root" folder that shows all incoming emails. only the "Child" folders show.....
    '''Unified Folders'''
    Unified Folders (originally named Smart Folders when it was added in 3.0) is a folder pane view which looks like a global inbox account by merging the contents of all inbox folders (both POP, IMAP and local folders) from all accounts. It also shows the inbox of each account as a child folder of the unified Inbox account. Any messages in an inbox shows up in both the root of the unified Inbox, plus the child folder of the unified Inbox for that account.
    Each account still displays any child folders of the inbox, only its inbox folder has been "moved" away from the account. This does not, however, change where and how messages are stored. In other words, Unified is just another way to view your folders, similar to what you can do with a saved search (a type of virtual folder).
    Use View -> Folders -> Unified Folders to select it. If you don't want to use it, use View -> Folders -> All Folders to select a more traditional display. Thunderbird 10 eliminated the ◄► arrows at the top of the folder pane that you could use to cycle between different views.

  • After intalling ios 8.0.2 I cannot enter web addresses

    When I attempt to enter web addresses into safari, as soon as I enter the first letter the ipad goes back to the "home" page.
    Any suggestions?

    Thanks for the suggestion unfortunately that did not solve the problem.  Scott Lecy
    612-805-2524 Cell
          From: Apple Support Communities Updates <[email protected]>
    To: blbclub <[email protected]>
    Sent: Thursday, October 9, 2014 12:29 PM
    Subject: - After intalling ios 8.0.2 I cannot enter web addresses
    Apple Support Communities updates#yiv1282069232 a, #yiv1282069232 a.yiv1282069232aapl-link, #yiv1282069232 a.yiv1282069232aapl-link:link {text-decoration:none;color:#08c;}#yiv1282069232 p #yiv1282069232 a.yiv1282069232aapl-link:hover {text-decoration:underline;}#yiv1282069232 body _filtered #yiv1282069232 {}#yiv1282069232 _filtered #yiv1282069232 {}#yiv1282069232 * .filtered99999 #yiv1282069232 * .filtered99999 #yiv1282069232 * .filtered99999 #yiv1282069232 * .filtered99999 #yiv1282069232 #yiv1282069232 _filtered #yiv1282069232 {}#yiv1282069232 td .filtered99999 {padding-left:20px!important;padding-right:20px!important;}#yiv1282069232 table #yiv1282069232 table .filtered99999 , #yiv1282069232 table .filtered99999 tbody, #yiv1282069232 table .filtered99999 tr, #yiv1282069232 table .filtered99999 td #yiv1282069232 td img {max-width:100%!important;height:auto!important;}#yiv1282069232 td .filtered99999 {}#yiv1282069232 a.yiv1282069232button #yiv1282069232



      |


    You received a reply
      |


    Briansyddall has replied to your question. You can view the full discussion in Apple Support Communities.
      |



    After intalling ios 8.0.2 I cannot enter web addresses
    Try a reboot press & hold power button & menu button hold both down until you see Apple Logo You will not lose any data. Bsydd UK
      |



    Correct Answer   Helpful Answer
      |
    Use the buttons above to tell Briansyddall and the rest of the community if this reply solved your question or helped you get closer to finding a solution.
    To reply to Briansyddall, go to the discussion in Apple Support Communities.


    You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile.
    TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014.
    All Rights Reserved
    Privacy Policy
    Terms of Use
    Apple Support

  • I can't type in the web address in the address bar. I have to open a new tab to do it.

    I just upgraded from Windows XP to Windows 7. I reinstalled firefox, added the speeddial that I liked so much, and then tried to use firefox. I can't type the web address into the address bar when I start firefox. I always have to open a new tab before it'll let me do it. Also, I can't highlight and copy what's typed there - AND I can't "paste and go" anymore. Is that open gone?

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Why won't my web address stay in the address box

    if i type any web address into the address box it does not stay it disapers what should i do ??

    Could you be a little more specific?  What product are you using and what version of software/os are you using as well.

Maybe you are looking for

  • Delivering our iBook from outside U.S. - our story

    Hello Everyone, Last year when starting our iBook project I was hungry for as much reliable information as possible. This community was very helpful and I hope to be able to help anyone interested in creating and delivering their iBook. So I hope to

  • "Error in loading WSDL file" --- Adaptive Webservice Model

    Hi All, I have been using Deprecated web service  model. But now my application is moving to Test. So in order not to change the URL of the webservice model in the Test, i tried with the Adaptive webservice model. But when i try to import the model i

  • Hierarchical treeview structure in Reports

    Hi, I am working with an MNC, can anybody help me out by valuable guidelines in doing an hierarchical treeview structure in Reports. Your early response would b helpful to me. Bye Pavan

  • IPhoto isnt reading my photos

    iPhoto is saying that it can't download my pictures because it can't read them but its always been able to do it before and I havent been doing anything different.. any thoughts?

  • Where we can find the dimension exceeds 20% of the fact table

    hi all, we have dimension in cube if i want to make the dimension as the line item dimension. before doing that we need to find the dimension is exceeds the 20% of the fact table. where we can find this option? please let me know ....         thanks