Results 1 to 3 of 3

Thread: gmap HyperLinks

  1. #1
    riju123 is offline Active Member
    Join Date
    May 2009
    Posts
    48
    Rep Power
    5

    Default gmap HyperLinks

    Hi
    i am very new to zimbra .
    I have installed zimlet net_inova_gmaps (ie the Google Map) . This is very interesting .
    But I have a question like how a String is being hyperlinked when there is an address.
    i know that they check with a regular expression but what is the logic behind making the hyperlink .
    Please Let me know
    Thanx in advance

  2. #2
    deletek is offline Member
    Join Date
    Sep 2009
    Posts
    10
    Rep Power
    5

    Default

    These are default regexps:

    regexps[0] = new RegExp("\\b((Aeroporto|Alameda|Al|Ă~Area|Avenida|A v|Campo|Chácara|ColĂ´nia|CondomĂ*nio|Conjunto|Cj| Distrito|Esplanada|Estação|Estrada|Favela|Fazend a|Feira|Jardim|Ladeira|Lago|Lg|Lagoa|Largo|Loteame nto|Lot|Morro|NĂşcleo|Parque|Passarela|Pátio|PraĂ §a|Pç|Quadra|Qd|Recanto|Residencial|Res|Rodovia|R ua|R|Setor|SĂ*tio|Travessa|Trecho|Trevo|Vale|Vered a|Via|Viaduto|Viela|Vila)(\\.\\s|\\s)[^.]+)", "gim");
    // Regex CEP Brasil
    regexps[1] = new RegExp("\\b(\\d{5}-\\d{3})\\b", "gim");
    // Regex USA
    regexps[2] = new RegExp("(\\b\\d+[A-Za-z]?[ ]+([ewns]\\.?[ ]+)?[A-Za-z0-9]+([ ]+[A-Za-z0-9]+)*[\\s,\\.](\\s*(\\#|[A-Za-z]+[,\\.]?)[ ]*\\d+[\\s,\\.])?\\s*[A-Za-z]+([ ]+[A-Za-z]+)*[ ,][ ]*[A-Za-z]{2}([A-Za-z]+([ ][A-Za-z]+)?)?[ ]+\\d{5}(-\\d{4})?\\b)", "gim");

  3. #3
    riju123 is offline Active Member
    Join Date
    May 2009
    Posts
    48
    Rep Power
    5

    Default

    Thanks deletek

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 11-14-2008, 05:28 AM
  2. Z.Desktop on Mac - Prism & Hyperlinks
    By shazbot996 in forum General Questions
    Replies: 2
    Last Post: 06-17-2008, 11:49 PM
  3. Hyperlinks problem
    By achow in forum Users
    Replies: 5
    Last Post: 02-13-2006, 06:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •