Hello,
Does anyone what RegExp to use for the following.
3-digits followed by "-" or " " then Followed by 6 or 7 digits then followed
by any number of spaces.
111 111111
111-111111
222-123456"" space at the end okay
231 1345678
I just can not figure out the end spaces...
Thank you
SA 6 987
..
"MSDN" wrote: Hello,
Does anyone what RegExp to use for the following.
3-digits followed by "-" or " " then Followed by 6 or 7 digits then followed by any number of spaces.
111 111111 111-111111
222-123456"" space at the end okay
231 1345678
I just can not figure out the end spaces...
Thank you
SA
[\d]{3}[-\s]{1}[\d]{6,7}[ ]*
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Show me your certification without works,
and I'll show my certification
*by* my works.
"MSDN" <sq**********@hotmail.com> wrote in message
news:e7**************@TK2MSFTNGP05.phx.gbl... Hello,
Does anyone what RegExp to use for the following.
3-digits followed by "-" or " " then Followed by 6 or 7 digits then followed by any number of spaces.
111 111111 111-111111
222-123456"" space at the end okay
231 1345678
I just can not figure out the end spaces...
Thank you
SA
Kevin,
Thank you it is working know
SA
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl... [\d]{3}[-\s]{1}[\d]{6,7}[ ]*
-- HTH,
Kevin Spencer Microsoft MVP Professional Numbskull
Show me your certification without works, and I'll show my certification *by* my works.
"MSDN" <sq**********@hotmail.com> wrote in message news:e7**************@TK2MSFTNGP05.phx.gbl... Hello,
Does anyone what RegExp to use for the following.
3-digits followed by "-" or " " then Followed by 6 or 7 digits then followed by any number of spaces.
111 111111 111-111111
222-123456"" space at the end okay
231 1345678
I just can not figure out the end spaces...
Thank you
SA
Sorry I did not ask the right question
I ended using
^\d{3}[-| ]?\d{6}\d?[ ]?$
May be I could have used this also
\d{3}[- ]?\d{6}\d?[ ]+
So I want [3 digits ] [Followed by nothing or, - , or space ] [Followed by 6
digits][Followed by zero or one digit][Followed by zero or many spaces]
Again Thank you for your help
SA
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl... [\d]{3}[-\s]{1}[\d]{6,7}[ ]*
-- HTH,
Kevin Spencer Microsoft MVP Professional Numbskull
Show me your certification without works, and I'll show my certification *by* my works.
"MSDN" <sq**********@hotmail.com> wrote in message news:e7**************@TK2MSFTNGP05.phx.gbl... Hello,
Does anyone what RegExp to use for the following.
3-digits followed by "-" or " " then Followed by 6 or 7 digits then followed by any number of spaces.
111 111111 111-111111
222-123456"" space at the end okay
231 1345678
I just can not figure out the end spaces...
Thank you
SA
So, you're all set then?
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Show me your certification without works,
and I'll show my certification
*by* my works.
"MSDN" <sq**********@hotmail.com> wrote in message
news:ut**************@TK2MSFTNGP03.phx.gbl... Sorry I did not ask the right question I ended using
^\d{3}[-| ]?\d{6}\d?[ ]?$
May be I could have used this also \d{3}[- ]?\d{6}\d?[ ]+
So I want [3 digits ] [Followed by nothing or, - , or space ] [Followed by 6 digits][Followed by zero or one digit][Followed by zero or many spaces]
Again Thank you for your help
SA
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message news:%2****************@TK2MSFTNGP03.phx.gbl... [\d]{3}[-\s]{1}[\d]{6,7}[ ]*
-- HTH,
Kevin Spencer Microsoft MVP Professional Numbskull
Show me your certification without works, and I'll show my certification *by* my works.
"MSDN" <sq**********@hotmail.com> wrote in message news:e7**************@TK2MSFTNGP05.phx.gbl... Hello,
Does anyone what RegExp to use for the following.
3-digits followed by "-" or " " then Followed by 6 or 7 digits then followed by any number of spaces.
111 111111 111-111111
222-123456"" space at the end okay
231 1345678
I just can not figure out the end spaces...
Thank you
SA
Kevin,
Yes and thank you,
SA
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OZ**************@TK2MSFTNGP04.phx.gbl... So, you're all set then?
-- HTH,
Kevin Spencer Microsoft MVP Professional Numbskull
Show me your certification without works, and I'll show my certification *by* my works.
"MSDN" <sq**********@hotmail.com> wrote in message news:ut**************@TK2MSFTNGP03.phx.gbl... Sorry I did not ask the right question I ended using
^\d{3}[-| ]?\d{6}\d?[ ]?$
May be I could have used this also \d{3}[- ]?\d{6}\d?[ ]+
So I want [3 digits ] [Followed by nothing or, - , or space ] [Followed by 6 digits][Followed by zero or one digit][Followed by zero or many spaces]
Again Thank you for your help
SA
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message news:%2****************@TK2MSFTNGP03.phx.gbl... [\d]{3}[-\s]{1}[\d]{6,7}[ ]*
-- HTH,
Kevin Spencer Microsoft MVP Professional Numbskull
Show me your certification without works, and I'll show my certification *by* my works.
"MSDN" <sq**********@hotmail.com> wrote in message news:e7**************@TK2MSFTNGP05.phx.gbl... Hello,
Does anyone what RegExp to use for the following.
3-digits followed by "-" or " " then Followed by 6 or 7 digits then followed by any number of spaces.
111 111111 111-111111
222-123456"" space at the end okay
231 1345678
I just can not figure out the end spaces...
Thank you
SA
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Gary |
last post by:
I am trying to use the "System.Windows.Forms.SendKeys" class for triggering
the Ctrl+P key.
Syntax:
System.Windows.Forms.SendKeys.Send("^(P)");
This is not working ..what could be the...
|
by: Mullin Yu |
last post by:
hi,
i have a web service that has file operations on Windows OS, and there may
be a file concurrency issue if only one working directory e.g. c:\working
therefore, i want to have a unique sub...
|
by: |
last post by:
Hello,
I am hoping someone else has thought about a date time calculation i need to
perform.
I would like to be able to calculate the number of "working minutes" between
2 dates, given my...
|
by: Hardy Wang |
last post by:
Hi:
Is it possible for me to create/open web application from remote machine
other than port 80? And create application directly under virtual web site
instead of creating a virtual directory?...
|
by: Martin Heuckeroth |
last post by:
Hi
We are working on a webservice application and are having some
problems with the cookies and/or sessions.
We have them working on our intranet but then its not working on the
internet. We...
|
by: tshad |
last post by:
I have been working with setting my drop boxes to allow double clicking to
select an item.
It worked fine until I made some changes. I then stripped the page down to
the bare essentials to find...
|
by: jojobar |
last post by:
Okay, I am trying to do is to test the webresource in 2.0
1. I created a new project with assembly name (and default assembly name)
"Office".
2. I added the following to the AssemblyInfo.cs...
|
by: Don |
last post by:
I'm having problems with intellisense, autocomplete, etc. suddenly not
working in certain classes of a project I'm working on. All the options are
set, and it all works fine for most classes, but...
|
by: MSDNAndi |
last post by:
Hi,
I have a set of simple webservices calls that worked fine using .NET
Framework 1.0.
I am calling a Java/Apache based webservices, the calling side is not able
to supply a proper WSDL.
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |