Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

Search

You searched for the word(s):
Showing page 1 of 2 (19 total posts) < 1 second(s)
  • Re: Regexp in Java to escape double quotes and special cases.

    Hi all &nbsp; So i used this finallyp.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3834ff}(\&quot;\&quot;|\&quot;(?:[^\&quot;\n\r]|\&quot;{2})+\&quot;) to take care of empty strings, &nbsp;and single line strings. I hope this is going to work well for my application and wont break and other combination of quotes. Thanks ...
    Posted to Construction Advice (Forum) by Misha79 on April 18, 2011
  • Re: Regexp in Java to escape double quotes and special cases.

    Now regex works everywhere except for input Strings -&nbsp; string hg = &quot;&quot;;where double quotes has nothing.&nbsp;To handle this case - i changed my regex to &quot;(\&quot;\&quot;|\&quot;(?:[^\&quot;]|\&quot;{2})+\&quot;)&quot;&nbsp;But its break at String literal=&#39;&quot;&#39;; //with my original regex it was picked correctly by my ...
    Posted to Construction Advice (Forum) by Misha79 on April 18, 2011
  • Re: Regexp in Java to escape double quotes and special cases.

    Sergei Your regex expression worked perfectly.&nbsp; &nbsp; Thank you so much . But i still have a question. Why&nbsp;did you use ascii character&nbsp; \x22 for &quot; instead?Does it make any&nbsp; difference to performace of regex evaluation. &nbsp; &nbsp;
    Posted to Construction Advice (Forum) by Misha79 on April 17, 2011
  • Re: Regexp in Java to escape double quotes and special cases.

    Hi&nbsp; &nbsp; 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 &nbsp;In input String - private&nbsp;Regex&nbsp;path = ...
    Posted to Construction Advice (Forum) by Misha79 on April 15, 2011
  • Regexp in Java to escape double quotes and special cases.

    I &nbsp;have a regex in Java to extract out &nbsp;double-quoted text . Regex in Java :&nbsp;(\&quot;\&quot;|\&quot;[\\s\\S]*?[^\\\\]\&quot;)&nbsp; Input can be any String - . But there can be cases where strings are : like &nbsp; &nbsp; &nbsp;p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}span.s1 {text-decoration: ...
    Posted to Construction Advice (Forum) by Misha79 on April 15, 2011
  • Regexp in Java to escape double quotes and special cases.

    I &nbsp;have a regex in Java to extract out &nbsp;double-quoted text . Regex in Java :&nbsp;(\&quot;\&quot;|\&quot;[\\s\\S]*?[^\\\\]\&quot;)&nbsp; Input can be any String - . But there can be cases where strings are : like &nbsp; &nbsp; &nbsp;p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}span.s1 {text-decoration: ...
    Posted to Construction Advice (Forum) by Misha79 on April 15, 2011
  • Re: C# regex -escaping double quotes.

    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 &nbsp;,and it has \&quot;&quot; ,it messes up.To handle that case, i can refine my regex.Any ideas.&nbsp;My ...
    Posted to Construction Advice (Forum) by Misha79 on April 15, 2011
  • Re: C# regex -escaping double quotes.

    Can you please tell me what is bad or unnecessary in these regexes.&nbsp; Seems fine--&gt; 1. Regex cmdRegex = new Regex(@&quot;(^clone$| clone$| clone |^clone )&quot;, RegexOptions.Compiled | RegexOptions.IgnoreCase); Not this --&gt; 2. Regex usernameRegex = new ...
    Posted to Construction Advice (Forum) by Misha79 on April 15, 2011
  • Re: C# regex -escaping double quotes.

    Can you please tell me what is bad or unnecessary in these regexes.&nbsp; Seems fine--&gt; 1. Regex cmdRegex = new Regex(@&quot;(^clone$| clone$| clone |^clone )&quot;, RegexOptions.Compiled | RegexOptions.IgnoreCase); Not this --&gt; 2. Regex usernameRegex = new ...
    Posted to Construction Advice (Forum) by Misha79 on April 15, 2011
  • Re: C# regex -escaping double quotes.

    You mean [\&quot;&quot;] &nbsp;and [&quot;&quot;] 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.&nbsp;
    Posted to Construction Advice (Forum) by Misha79 on April 15, 2011
1 2 Next >