|
|
Search
You searched for the word(s):
Showing page 1 of 2 (19 total posts)
< 1 second(s)
-
Hi all
So i used this finallyp.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3834ff}(\"\"|\"(?:[^\"\n\r]|\"{2})+\")
to take care of empty strings, and single line strings.
I hope this is going to work well for my application and wont break and other combination of quotes.
Thanks ...
-
Now regex works everywhere except for input Strings - string hg = "";where double quotes has nothing. To handle this case - i changed my regex to "(\"\"|\"(?:[^\"]|\"{2})+\")" But its break at String literal='"'; //with my original regex it was picked correctly by my ...
-
Sergei
Your regex expression worked perfectly.
Thank you so much .
But i still have a question.
Why did you use ascii character \x22 for " instead?Does it make any difference to performace of regex evaluation.
-
Hi
Thanks for replying back .
I want to make some addition to my existing regex( in my prev post) for double-quotes (in Java) so that i if Strings are like that- that also should also be extracted.
Foreg In input String -
private Regex path = ...
-
I have a regex in Java to extract out double-quoted text .
Regex in Java : (\"\"|\"[\\s\\S]*?[^\\\\]\")
Input can be any String - .
But there can be cases where strings are : like
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}span.s1 {text-decoration: ...
-
I have a regex in Java to extract out double-quoted text .
Regex in Java : (\"\"|\"[\\s\\S]*?[^\\\\]\")
Input can be any String - .
But there can be cases where strings are : like
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}span.s1 {text-decoration: ...
-
I need to have a regex in java to fetch all that is in double quotes.But i hope it should be same for dot net.My current regex doesnt include such cases.It picks everything in dbl quotes .but if input is something like regex strig again ,and it has \"" ,it messes up.To handle that case, i can refine my regex.Any ideas. My ...
-
Can you please tell me what is bad or unnecessary in these regexes. Seems fine--> 1. Regex cmdRegex = new Regex(@"(^clone$| clone$| clone |^clone )", RegexOptions.Compiled | RegexOptions.IgnoreCase); Not this --> 2. Regex usernameRegex = new ...
-
Can you please tell me what is bad or unnecessary in these regexes. Seems fine--> 1. Regex cmdRegex = new Regex(@"(^clone$| clone$| clone |^clone )", RegexOptions.Compiled | RegexOptions.IgnoreCase); Not this --> 2. Regex usernameRegex = new ...
-
You mean [\""] and [""] produce same results?Slash was unneccesary but doesnt give parsing error?
I have minimal knowledge in dot net and cant run these regexes on my system.
1
|
|
|