Office - Email fomatting pattern

Asked By Chris
14-Apr-07 09:14 PM
Hi can someone please show me how to verify for a correct email syntax. I
tried entering
^\+?[a-z0-9](([-+.]|[_]+)?[a-z0-9]+)*@([a-z0-9]+(\.|\-))+[a-z]{2,6}$ in the
custom pattern but that was rejected. Thanks ... Chris
InfoPath
(1)
ChrisRE
(1)
Expression
(1)
Chris
(1)
Pattern
(1)
Supplied
(1)
Email
(1)
Brackets
(1)
  SYMWongATo replied...
15-Apr-07 08:50 PM
Try this one:

([\w\-\.]+)@((\[([0-9]{1,3}\.){3}[0-9]{1,3}\])|(([\w\-]+\.)+)([a-zA-Z]{2,4}))

You need to remove the beginning ^ and ending $ from any regular expression
you try to use in InfoPath, otherwise you'll get back an error.
---
S.Y.M. Wong-A-Ton
  Chris replied...
15-Apr-07 09:04 PM
Hi S.Y.M. thanks but nope it still comes up with '... one or more errors' &
referenced the square brackets. Tried replacing those with regular brackets
but it the had issue with the '\'. Any thoughts?? Thanks again ... Chris
  SYMWongATo replied...
15-Apr-07 11:10 PM
Chris, did you try the expression I supplied or are you still trying to get
your own to work? And where are you using this regular expression? In data
validation? The expression I supplied you with worked when I last tried it. I
get errors when trying yours, so there must be something wrong with it. Does
it work in other applications or code that uses regular expressions? You may
want to try another newsgroup (csharp or comp.lang.perl.misc) to help you
troubleshoot your pattern.
---
S.Y.M. Wong-A-Ton
Create New Account
help
infopath expression Office I'm using Infopath 2007 to design a survey where people answer questions as to the sevity of an between 1 and 5. My goal is that after someone fills in thier responses, an expression box calculates the scores. The problem is the calculation needs to be made even if t figure out how to express this with n bieng an unknown. Please help. T InfoPath Discussions InfoPathDev (1) Braintrove (1) Infopath (1) Sevity (1) Bieng (1) The problem is that you might end up with a Visit Braintrove at http: / / www.braintrove.com Visit InfoPathDev at http: / / www.infopathdev.com keywords: infopath, expression description: I'm using Infopath 2007 to design a survey where people answer questions as
what is infopath ? Office why do we use infopath. thanks InfoPath Discussions InfoPath 2007 (1) InfoPath (1) Office (1) NaveedInfoPath (1) Pathan (1) Kalyan (1) Hello Naveed InfoPath 2007 and Microsoft Office InfoPath Forms Services help you create and deploy electronic forms solutions to gather information efficiently and reliably. Please visit this link to know more about Infopath http: / / msdn2.microsoft.com / en-us / office / aa905434.aspx - - Kalyan G Reddy - INFOPATH MVP 2007
Macros Office I am developing Infopath forms and we currently use macros - will macros work with infopath? InfoPath Discussions InfoPath (1) Excel (1) InfoPatht (1) Florida (1) Qdabra (1) Macros (1) Clay (1) Han (1 more details. - - Thanks Clay Fox Qdabra Software http: / / www.qdabra.com InfoPathDev.Com The Largest InfoPath Forum in the World http: / / www.infopathdev.com keywords: Macros description: I am developing Infopath forms and we currently use macros - will macros work with infopath?
InfoPath to Word Wizard for InfoPath 2007? (InfoPath 2007 SDK) Office Will there be an InfoPath 2007 version of the "InfoPath to Word Wizard" that is included with the InfoPath 2003 SDK? Will there be a downloadable InfoPath 2007 SDK? All I have found so far is online based documentation and help, but no tools and utilities. It works fine to use the InfoPath to Word Wizard together with Word 2007 and using the .docx file format, but the