Solved

Lync regex translation rules.

Posted on 2014-09-08
2
501 Views
Last Modified: 2014-09-08
Hi,

I need to write a regex in Lync to do the following. I have a range of extension 2000 - 2499

I want to convert to

0800 1234xxx

so the regex needs to match on all 4 digits but then strip the first and append 08001234 on to the front

I can build a simple expresion in Lync and chose to remove a digit, but not one that will only pick out 2000-2499.

Or I can build a regex that matches exactly what I want, but then you don't get an opportunity to remove a digit?

Any suggestions?
0
Comment
Question by:Aaron Street
2 Comments
 
LVL 5

Accepted Solution

by:
Sapa earned 500 total points
ID: 40311022
Pattern:

^\d(\d{3})$

Translation:

08001234$1
0
 
LVL 16

Author Comment

by:Aaron Street
ID: 40311061
Ahh I see its he () that dictate the capture part :)

Sorry my regex is not good.

thank you
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question