Regex for finding sentences within text c# [closed] - c#

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 6 years ago.
Improve this question
The text is in Hebrew, and contains email addresses within the sentences (meaning that the char '.' may indicate not only an end of a sentence but also an email address) I want to split the text into sentences. How can I do it? With what regex pattern?

Like so: ((([^\.]|\.\S)+[\.\!\?])\s+)
Each capture at the top level will be a sentence on the assumption that a period followed by a non-space character is part of an email.

Related

How to take char between digit and bracket? [closed]

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
We have for egz. 4.7(8+3) how add multiple character between digit and bracket4.7*(8+3)
Capture digit followed by bracket into two groups, then replace matched value with group values and multiple character between them:
Regex.Replace(input, #"(\d)(\()", "$1*$2")
For input "4.7(5+(8+3)/1(1-2))" result will be "4.7*(5+(8+3)/1*(1-2))"
Keep it simple: REplace ( by *(

C# - Skype user validation (RE) [closed]

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

Underline a single word in List & Label [closed]

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 7 years ago.
Improve this question
I'm creating a form in combit List&Label 16 and trying to underline a single word in a label but I can't find the option to do so...
Do you know if and how I can to this?
The way I did it now is to split the label in 3 parts and to underline the middle one but I refuse to believe that this is the way to go in 2015 :D
Thanks in advance
Use the Formatted Text object instead of unformatted text. This gives you all the options to format single words.

Allow underscore "_" as a special character [closed]

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 7 years ago.
Improve this question
This is the expression, it is not accepting "_" as a special character
{(?=.{8,})(?=(.*\d){0,})(?=(.*\W){1,})}
When you set conditions inside a pattern, do not forget to actually consume the characters, add .+ to capture 1 or more symbols, or .* to capture 0 or more characters:
{(?=.{8,})(?=(.*\d){0,})(?=(.*[^a-zA-Z0-9]){1,}).+}
However, if you want to require a string to have at least 1 digit and at least 1 non-word symbol (excluding underscore), I'd suggest using
{(?=.{8,})(?=(?:.*\d){0,})(?=(?:.*[^a-zA-Z0-9]){1,}).+}
See demo.

How to match a string that doesnt contain a pattern [closed]

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 8 years ago.
Improve this question
I am trying to write a regex template that matches all the strings that doesn't contain a certain template.
E.g.:
Matches:
This is my friend. He is very nice.
in
This is my friend. He is very nice.
but doesn't match anything in :
This is my friend John Michaels Fredrickson. He is very nice.
Because it contains something like this: ([A-Z][a-z]+\s?){3}
You can use negative lookahead:
^(?!.*?([A-Z][a-z]+\W){3}).*$
RegEx Demo

Categories