Locnath / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
0 stars 0 forks source link

Adding several search & replace patters #428

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am struggling with entering several search & replace patterns. As an 
example:

first pattern: \+1(.*),1\1

This removes + from any dialed north american numbers for my VoIP provider 
to understand where to call. However, when I am trying to call 
international, let say: +7 495 5555555 the existing pattern adds "1" in 
front of dialing number however I need 011 7 495 5555555. How do I do it. 
Maybe someone with java skills can explain. My understanding is probably 
wrong:

\ - start
+1(.*) - replace everything starts with +1 (what do brackets do?)
, - separator <existingvalue>, <newvalue>
1 - new value
\ - finish?
1 - only one pattern?

Original issue reported on code.google.com by Serge.Korovitsyn@gmail.com on 17 Apr 2010 at 7:26

GoogleCodeExporter commented 9 years ago

Original comment by pmerl...@googlemail.com on 18 Apr 2010 at 11:28

GoogleCodeExporter commented 9 years ago

Original comment by pmerl...@googlemail.com on 18 Apr 2010 at 11:29