Regex expression String contains alpha bates and arithmetic operator - [closed] - regex

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I need Regex expression it Start with alpha bates and it contains - symbol please help me
Example: One-Two-three
thanks

^[A-Za-z][A-Za-z-]*$
should do it

Related

GNU regular expression for partial match [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I have a document with The SPEAKER (Hon. xxxx yyyy) and The President(Hon. aaaa bbbb).
How do I match the contents of SPEAKER (i.e. xxxx yyyy) but not the second (aaaa bbbb)?
Use the following Regex for this...
$text=~m/\(Hon\.\s*(x{3}\s+y{3})\)/igs;
In case of your using a variable for those x and y
$x='x';
$y='y';
$text=~m/\(Hon\.\s*($x{3}\s+$y{3})\)/igs;

How can I match a pattern which is not containg any capital letter in Regular Expression? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I have tried to match a string which is not contain any capital letter.But I don't Know how to do it. Can anyone help me.
Compare a lower cased version of the string to what the user entered. If they're equal, it's all in lowercase.

Get value out of string with a regular expression [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
Regular expressions are driving me nuts. Let's say I have this string:
rid=1234567"
How do I get the value 1234567 out of this string? And that number can be anything, with any length, but also characters and numbers.
With a capture group
=([1-9a-zA-Z]*)"
Debuggex Demo

Regex:password all character are allowed,but not include space [closed]

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
Regex:password all character are allowed,but not include space,length is 8-16.please give me an efftive help.
Consider the following Regex...
^\S{8,16}$
Good Luck!

RegEx - Add new conditions to existing regex [closed]

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 currently have this Regex:
.*[a-z]$|.*[A-Z]$|.*[0-9]$
I need to add the following to the existing - /:.#[]()
Does anyone know how to do it?
You don't need multiple OR conditions. Have only one and include special characters also:
[0-9A-Za-z\/#:.()\[\]]
Per your comments, this should do it for you:
^[a-zA-Z0-9/:.#\[\]()]+$
This will match a string containing only the characters you've specified.