Keshav Khedkar

Greenhorn
+ Follow
since Jun 23, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Keshav Khedkar

Hi all,
What I want is the whole <div id='article_body'> tag from the contents of the file attached. the regex expression I provided considers the nested nature of this tag - this tag can be nested within other <div> tags and other <div> tag can be nested into this.
My expression is giving me wrong results - it either extracts contents starting from article_body to first </div> tag or last </div> tag. both the cases are invalid. extracted contents should end up to the </div> tag meant for <div id='article_body'>.
I have numbered groups in the regex expression from left to right (don't know the right order).
cases may be-
1) there would not be any tags in article_body tag.
2) nested tags - like <div id='parent'><div id='article-body'><div>sss</div>ssdd<div><div />sfdfd</div></div></div>

for nested nature I have used backreferences to group.
other alternative solutions like best open source html parser are also welcome - suggest me a html parser.
13 years ago
Hi All,
this is the regex expression I am using: (<div)\s+id="article_body">(.*?((\1((.*?(\5|\8).*?|.*?)|.*?)\9)|(\1[^>]*?/>))){1,}(</div>)
to extract whole complete <div id='article_body'> tag. Note that this tag can have other <div> tags as well as other tags. there can be other <div> tags before or after this tag. My expression is not accurate.
Following are the contents:

// Snip

Please help me to get right regex expression.
Thanks in advance.
regards,
kk.
13 years ago
Hi All,
I am stuck with a problem regarding jspinner.
I am using jspinner in following code:
Date date = new Date();
SpinnerDateModel sm = new SpinnerDateModel(date, null, null, Calendar.HOUR_OF_DAY);
jsTime = new JSpinner(sm);
JSpinner.DateEditor de = new JSpinner.DateEditor(jsTime, "hh:mm");
jsTime.setEditor(de);
jsTime.getEditor().setEnabled(false);
currently If I press tab key on the above jspinner, focus get shifted to next control (not in above code). What I want is if I am in hours section and presses a tab key then it should go to minutes section. If I am in minutes section and presses a tab key, it should go to next control.
Till now I tried to get as much information as possible from net. but failed to get a solution to this.
Please help me with this.
thanks & regards,
KK.
13 years ago
You can control the size of Button BY combined Use Of Panels And
Layout Manager.
23 years ago