Cool...That was indeed a simple one...I had another question. What if I had a restriction on numbers that appear on either side of : ? So numbers are either side of : should be of the format MM:SS where MM - Minutes and SS - seconds.
Thats why I put in the OR condition in my original post...
I was just trying to explain what i was doing. Its just a pseudo code. I know the matching has to be done using =~ in perl.
Some valid ones are:
20=34x45,21=2:45
20=34x45,21=3:01,34=12:32
10=23:12
Invalid ones are
20=34x45,21=2:45,
20
30,23,34
abc
Hope that helps
K
I have a string that needs to be matched against a regex and if a match occurs return true/ false.
The variable length string to be compared looks like this
20=34x89,10=23:45,12=10:32, and soon. As you can see, the number and order of strings containing x's and :'s are not known.
I wrote...
Lets forget about the presence of Hello World in the string.
I have a request string that I need to validate on the server. The request string (ideally) should be comma separated positive integers. If the string is NOT properly formatted, I reject the string. So yes, its a true or false...
Below is the right data
12,43,45 - MATCH
12,34,56,77 - MATCH
112,23, - NO MATCH
11,3,45,66,77,88, - NO MATCH
90 - MaTCH
39, - NO MATCH
38,,45,9 - NO MATCH
Thx
K
Just to simplify things I would want to match only Comma Separated Integers. I want to match just one integer (with no comma) and I DONT want to match something like this 1,2,3,
This is the summary
1,2,3,..n - ok
1,2,3,...n, - NOT OK
1 - ok
Hope this is clear
Thanks
K
Hi
I am trying to determine the regular exp for finding a comma separated integer pattern with in a string
e.g
Hello++1,2,3++World
There could be just integer (ofcourse without any comma at the end) or many integers (comma separated)>
Let me know.
Thanks
K
Well, sorry for being really vague.
I need to parse a file which contains a line of this pattern
[a b 1 2][a c 1 3]. Now I would need the output to print something like this
a b
1 2
a c
1 3
I would like to use only Regualar Expressions for this. Hope I am clear this time.
Thanks
Hi I have an data-entry jsp which needs to offer three different views based on a certain set of conditions
There are three text fields
1) Old password
2) New Password
3) Enter New Password again
1,2 and 3 will be shown if the user is an owner
1 will be replaced by a label if the user is a...
Hi
I have a requirement wherein I click on a link in a window which opens another window. I do not want the pop-up window blocker to be blocking this popped window.
Is there a workaround for this in JavaScript?
Thanks
Krish
HI all
I am very new to perl... I was just wondering about the solution to this question.
I have two arrays A and B containing integers. Now i want to merge the two arrays. I was kinda confused with the syntax in perl so I didnt know which method to chhose. Anyways the idea is to remove the...
Hi an Interesting question
I have a column which stores a versin number in this format
1.5.5.19
1.5.5.9
...
...
I want to be able to sort this text column in an ascending order. Unfortunately it gives me 1.5.5.19 followed by 1.5.5.9 which is not the case.
Please let me know ASAP
Krish+
Hi iam developing a form which should automatically fit for any screen resolution.Right now the form developed in 1024*968 looks pretty big in 800*600.Is there anyway that i can resize the form dynamically(prob using a piece of code).Thanks
Krish
Iam an inexperienced MS SQL Server Programmer.I wanted to know if there is any way to link a table and a view having three fields in common.Please help me out with this.
thanks
krishna
Hi iam a beginner...i wanted to find out the number of records returned by searching for a string using combo boxes.The combo box is on a form and the related records on a subform..Thanks
Krishna
Please solve this problem of creating dynamic reports.
I have a report rptMailingList which needs to be dynamically updated
from each row of the query.That is i shud pick up the data in the
first row of the query and create a report based on that.Similarly
the second and soon till the end...
Please help me with this problem.I am supposed to mail reports to different users based on one condition.The Status check box corresponding to each User,if checked,should then be used to create a dynamic report containing the following fields
Username
City
Country
Then based on the username i...
Hi someone please help me with this problem with access database...
i have two tables named PITable and Datatable.
the PITable consists of two fields last name and firstname ..the combination of which is a primary key.It forms a one-to-many relationship with Datatable wherein
there are 20...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.