I want to know how to match two numbers, but they are not the same. So, match 12, but not 11, which would be fine.
What I have now is:
I have to match a string like “P12”, I completed it wit
I want to know how to match two numbers, but they are not the same. So, match 12, but not 11, which would be fine.
What I have now is:
I have to match a string like “P12”, I completed it wit
I am looking for the best way to match two values at the same time.
If both values are in the string, I want to get a true value, But I don’t know the order in which they appear in the st
Is there a good regular expression tutorial? Especially in the context of TextMate? I am familiar with regular expression syntax and basic concepts. I even have a copy of Jeffrey Fried’s book “Mast
I have a code as
$wrk = OC192-1-1-1;
@temp = split (/-/, $wrk);
if ($temp1[3] =~ /101 || 102 /)
{
print ” yes”;
} else {
print “no”;
} Output:
yes pre> I need to know why this is p
I use awk very badly, but I know it is very useful for contingency operations.
I have a form file:
JohnSmith_name 3.4
KellySears_name 5.7
RonaldBay_name 1.2
RayShendor_name 2.8 I want
I am trying to come up with a regular expression to help me validate the blood type field – it should only accept A [– ], B [– ], AB [–] and O [– ].
This is the regular expression I came up w
I have a text file like this:
marc_webber
john_grisham
rahmin_darfur
firstname_lastname I want to output something like this (forget the double name like “van These”):
Webber, Marc, mar
I am trying to learn Common Lisp and want to use regular expressions to parse text files. Which library is the easiest to use for a beginner like me? Am I correct to assume that it depends on the C
I need to match all that does not contain /admin/or? page = URL.
I will use it as a redirect rule in the iirf.ini file (htaccess syntax is supported).
How can I do this ?
^(?!.*(/
I have a text file containing a bunch of sentences. The sentences contain spaces (spaces, tabs, new lines) to separate words composed of letters and/or numbers.
I want to find the word “123” or “