Click here to Skip to main content
15,901,853 members
Home / Discussions / Web Development
   

Web Development

 
QuestionAdding TR after X rows Pin
brad_lucas29-Jan-07 21:48
brad_lucas29-Jan-07 21:48 
AnswerRe: Adding TR after X rows Pin
Vasudevan Deepak Kumar29-Jan-07 22:17
Vasudevan Deepak Kumar29-Jan-07 22:17 
GeneralRe: Adding TR after X rows Pin
brad_lucas29-Jan-07 22:54
brad_lucas29-Jan-07 22:54 
GeneralRe: Adding TR after X rows Pin
badgrs30-Jan-07 0:06
badgrs30-Jan-07 0:06 
GeneralRe: Adding TR after X rows Pin
brad_lucas30-Jan-07 1:05
brad_lucas30-Jan-07 1:05 
QuestionReading SharePoint User Information in ASP.NET Pin
A M SOMAN29-Jan-07 20:09
A M SOMAN29-Jan-07 20:09 
GeneralRe: Reading SharePoint User Information in ASP.NET Pin
A M SOMAN29-Jan-07 20:25
A M SOMAN29-Jan-07 20:25 
QuestionA question about two regular expression patterns, please help. Pin
howardjr29-Jan-07 10:30
howardjr29-Jan-07 10:30 
When I append showDialog='Name' to the url location to my page the following statement returns minus 1, for no match.
document.location.search.search( /(^\?|,)showDialog=(['"])?(Name|Number)(\1)?(,|$)/i )

but the next statement returns zero, for a match starting at the begging of the string.
document.location.search.search( /(^\?|,)showDialog=(['"])?(Name|Number)(['"])?(,|$)/i )

The difference between the two is that the first one is supposed to match the quotes that enclose the word Name or Number.

On page 170 of the O'Reilly book, JavaScript The Definitive Guide, by David Flanagan, a very good book on JavaSrcipt, the following example is shown and works:
/(['"])[^!"]*\1

This pattern looks for either a single or double quote, followed by any other characters, then the matching single or double quote that was initially found.

What I need for there to be an optional initial single or double quote, followed by either Name or Number, then the matching quote that matches the initial single or double quote, if any. This pattern is to occur immediately after the url location's query string's question mark or after that after a comma. The pattern should then end with a following comma or the end of the string.

Can any Regular Expression Gurus tell me why the first statement doesn't work and the correct pattern to use?

Until then I can use the second expression, understanding that the Name/Number value may not actually be enclosed with matching quotes.

Thank you.
AnswerRe: A question about two regular expression patterns, please help. Pin
Guffa30-Jan-07 5:44
Guffa30-Jan-07 5:44 
GeneralRe: A question about two regular expression patterns, please help. Pin
howardjr31-Jan-07 9:26
howardjr31-Jan-07 9:26 
AnswerRe: A question about two regular expression patterns, please help. Pin
Christian Graus30-Jan-07 10:56
protectorChristian Graus30-Jan-07 10:56 
GeneralRe: A question about two regular expression patterns, please help. Pin
howardjr31-Jan-07 9:27
howardjr31-Jan-07 9:27 
QuestionCached page problem Pin
itsgeeky29-Jan-07 6:57
itsgeeky29-Jan-07 6:57 
AnswerRe: Cached page problem Pin
Bradml29-Jan-07 13:06
Bradml29-Jan-07 13:06 
GeneralRe: Cached page problem Pin
itsgeeky29-Jan-07 23:59
itsgeeky29-Jan-07 23:59 
GeneralRe: Cached page problem Pin
Bradml30-Jan-07 0:08
Bradml30-Jan-07 0:08 
GeneralRe: Cached page problem Pin
itsgeeky30-Jan-07 1:55
itsgeeky30-Jan-07 1:55 
GeneralRe: Cached page problem Pin
badgrs30-Jan-07 5:25
badgrs30-Jan-07 5:25 
GeneralRe: Cached page problem Pin
itsgeeky30-Jan-07 6:07
itsgeeky30-Jan-07 6:07 
GeneralRe: Cached page problem Pin
Bradml30-Jan-07 20:37
Bradml30-Jan-07 20:37 
Questiononclick load js file Pin
militiaware28-Jan-07 22:52
militiaware28-Jan-07 22:52 
AnswerRe: onclick load js file Pin
Bradml28-Jan-07 23:13
Bradml28-Jan-07 23:13 
AnswerRe: onclick load js file Pin
badgrs29-Jan-07 0:04
badgrs29-Jan-07 0:04 
GeneralRe: onclick load js file Pin
militiaware29-Jan-07 1:51
militiaware29-Jan-07 1:51 
GeneralRe: onclick load js file Pin
Bradml29-Jan-07 13:04
Bradml29-Jan-07 13:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.