Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
I am trying to write a regular expression so a string can be split on the above ID's.
T followed by 9 digits (eg. T123654789)
or
S followed by 9 digits (eg. S123654789)
or
E followed by 9 digits (eg. E123654789)
I have this but does not seem to work.
"^[S][0-9]{9}?$|^[T][0-9]{9}?$|^[E][0-9]{9}?$"
This works on regxr.com but not in my program
"/([S]|[E]|[T])[1-9]{9}/g"
How about [TSE]{1}[0-9]{9}
Hope it helps.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I saw this post in internet about the restrictions on Skype name
A Skype username cannot be shorter than six characters or longer than
32. It can contain both letters and numbers, but must start with a letter; accented characters are not allowed. The only punctuation
marks you can use are commas, dashes, periods and underscores.
What is the regular expression that restrict these rules in C#?
Regards
maybe you can try this:
/^[A-Za-z\d\,\-\.\_]{6,32}$/
EDIT: make alphabets case-insensetive
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
Please help me to create in c# equivalent php
round(microtime(true) * 1000)
Figure should turn out similar to the 1457914762598
In C# your savior is DateTimeOffsetclass.
var dto = new DateTimeOffset(DateTime.Now);
Console.WriteLine(dto.ToUnixTimeMilliseconds());
It will print (as moment of writing):
1458062469274
Hope this is what are you looking for.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am new in the programming and i am looking for a regular expression as
first three characters should be alphanumeric followed by a constant which is a special character and then 1 or more hashes
(3 alphanumeric) (constant) ( one or more hashes)
AB1-#
ABC$##
etc
you can use something like
(\w{3})([^\s])(#+)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Usernames Yes/No
“6789” Yes
“33333333_TL” No
“34567890-Shhh” No
“123456-Hero” Yes
“1234567” Yes
“New12345678” No
“87456773kk” No
“1234567890” No
See Regex to check for 4 consecutive numbers.
First check if your string's length >= 8 and then use a regex to look for N consecutive digits and if it finds a fit - your validation fails. Something like - /[^\d]\d{8}[^\d]/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Hi guys I Need Some Help With A Regex:
I Need A Regex:
1. that accepts all type of characters like ą or Э or Ǿ or Я ...
2. which the number of characters is between 3 and 15
3. doesn't contain special characters
I'm guessing you want to match 3 to 15 Unicode letters. For that, you can use
new Regex(#"^\p{L}{3,15}$")
If you also want to allow spaces, you can use a character class:
new Regex(#"^[\p{L} ]{3,15}$")