Live text Regular expressions

Hello

I made a widget which works with phone data. So i want to enable the phone number on any document. This basically works well. But it seems, that the Standard PhoneNumber recogniser only recognises US Phone Number, but no European Phone Numbers. E.g. when i have a mail with the Phone Number +41 44 555 66 33, it does not recognize the “+”… (Bug?)

This does not work whith my widget :frowning:

I tried to create a new recognizer with a new regular expression. But i could no make it work with any Regexp! i tried these examples:

/^((+\d{1,3}(-| )?(?\d)?(-| )?\d{1,5})|((?\d{2,6})?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/

/^(+\d)\s((\d{3})\s*)*\d{3}(-{0,1}|\s{0,1})\d{2}(-{0,1}|\s{0,1})\d{2}$/

/^(+\d)\s((\d{3})\s*)*\d{3}(-{0,1}|\s{0,1})\d{2}(-{0,1}|\s{0,1})\d{2}$/

/[^0-9.,]/g

((?+?[0-9]*)?)?[0-9_- ()]$

But not one of these did underline the desired text.

Do i miss something?

thanx for any help

Subject: Solution?

Hello, i have the exact same problem.Did you ever find a solution to this issue?

Subject: Regex

I would use a tool like this to check your regex during development.http://www.cis.upenn.edu/~matuszek/General/RegexTester/regex-tester.html

This uses the same underpinnings as the one built into Notes.

You’ll want to hit “find()” to test.

You don’t have to change the XML, go here…

(WIdgets sidebar → Manage…)

You can edit from there…

Subject: Forwarded to Development

Thanks for your feedback - I’ve forwarded on to development.

DM