Click here to Skip to main content
15,867,568 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
GeneralRe: get parent LDAP DN - regex Pin
nExoR LU15-May-22 21:47
nExoR LU15-May-22 21:47 
QuestionRegular Expressions RegEx - Wildcards for route patterns Pin
Member 1563258311-May-22 6:05
Member 1563258311-May-22 6:05 
QuestionDoubt in Regular Expression Pin
Member 156250644-May-22 20:09
Member 156250644-May-22 20:09 
AnswerRe: Doubt in Regular Expression Pin
Richard Deeming4-May-22 21:17
mveRichard Deeming4-May-22 21:17 
QuestionRegex Lazy Match Zero or More Times (*?) Pin
Member 155940887-Apr-22 2:52
Member 155940887-Apr-22 2:52 
AnswerRe: Regex Lazy Match Zero or More Times (*?) Pin
k50547-Apr-22 4:17
mvek50547-Apr-22 4:17 
GeneralRe: Regex Lazy Match Zero or More Times (*?) Pin
Member 155940887-Apr-22 10:45
Member 155940887-Apr-22 10:45 
Questiondetect and extract phone numbers Pin
aristosv30-Mar-22 23:02
aristosv30-Mar-22 23:02 
I am using a software integration platform to connect to a Google calendar and read appointment events. Each event has a small description and phone number in the Summary and I need a regular expression to extract those phone numbers.

The problem is that each person entering an event, formats the phone number differently. Some phone numbers have spaces, or country prefix, and in some cases, there are other (irrelevant) numbers in the Summary also. I don’t mind keeping the country prefix if they enter it, but I do need to detect what’s the phone number.

So, here’s some information on the numbers

- If the user entered a prefix there will be a 357 or 00357 or +357 in the summary.
- After the prefix (if it exists) each phone number will start with 94 or 95 or 96 or 97 or 99.
- Then 6 more numbers will follow.
- There could also be spaces between the numbers

Eventually a correct phone number will be

99123456 or 35799123456 or +35799123456
99 can also be 94 or 95 or 96 or 97

I don’t know if this is too complicated or if it’s even possible to create a regex to correctly extract the phone numbers. Any help is appreciated.

Thanks
AnswerRe: detect and extract phone numbers Pin
jsc427-Apr-22 6:46
professionaljsc427-Apr-22 6:46 
QuestionMatch all lines except lines beginning with numbers or a few alphabets Pin
Diamond Dallas30-Mar-22 3:06
Diamond Dallas30-Mar-22 3:06 
AnswerRe: Match all lines except lines beginning with numbers or a few alphabets Pin
Member 1311558125-Sep-23 19:35
Member 1311558125-Sep-23 19:35 
Questionfinding repetead pattern Pin
Member 1556742215-Mar-22 6:19
Member 1556742215-Mar-22 6:19 
QuestionMatch if token exists only power of n times; Match if length of string is power of n Pin
Member 1556219610-Mar-22 9:35
Member 1556219610-Mar-22 9:35 
AnswerRe: Match if token exists only power of n times; Match if length of string is power of n Pin
Richard Deeming10-Mar-22 20:58
mveRichard Deeming10-Mar-22 20:58 
GeneralRe: Match if token exists only power of n times; Match if length of string is power of n Pin
Member 1556219611-Mar-22 2:23
Member 1556219611-Mar-22 2:23 
Questionregex for one Capital Pin
Member 140883235-Mar-22 10:01
Member 140883235-Mar-22 10:01 
AnswerRe: regex for one Capital Pin
OriginalGriff5-Mar-22 10:09
mveOriginalGriff5-Mar-22 10:09 
GeneralRe: regex for one Capital Pin
Member 140883235-Mar-22 10:22
Member 140883235-Mar-22 10:22 
GeneralRe: regex for one Capital Pin
OriginalGriff5-Mar-22 20:20
mveOriginalGriff5-Mar-22 20:20 
GeneralRe: regex for one Capital Pin
Richard Andrew x646-Mar-22 4:41
professionalRichard Andrew x646-Mar-22 4:41 
GeneralRe: regex for one Capital Pin
OriginalGriff6-Mar-22 5:38
mveOriginalGriff6-Mar-22 5:38 
QuestionRegex with condition? Should be easy Pin
Cp Divers21-Feb-22 4:44
Cp Divers21-Feb-22 4:44 
QuestionRe: Regex with condition? Should be easy Pin
Eddy Vluggen21-Feb-22 9:48
professionalEddy Vluggen21-Feb-22 9:48 
AnswerRe: Regex with condition? Should be easy Pin
Peter_in_278021-Feb-22 12:35
professionalPeter_in_278021-Feb-22 12:35 
QuestionRe: Regex with condition? Should be easy Pin
Richard MacCutchan21-Feb-22 21:10
mveRichard MacCutchan21-Feb-22 21:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.