jazzIIIlove
asked on
asp.net (?:^|,)(?=[^"]|(")?)"?((?(1)[^"]*|[^,"]*))"?(?=,|$) to java regex
Hi;
I need to convert this regex to java
(?:^|,)(?=[^"]|(")?)"?((?( 1)[^"]*|[^ ,"]*))"?(? =,|$)
Any helps?
Br.
I need to convert this regex to java
(?:^|,)(?=[^"]|(")?)"?((?(
Any helps?
Br.
Just a note... Often times, the issue with converting a regular expression from one language's syntax to another lies in the ability/inability to explain what a given regular expression is meant to do. You may use tools like https://regex101.com/ or Expresso (http://www.ultrapico.com/expresso.htm) help with that, which goes a long way with assisting a conversion effort.
ASKER
Jitendra Patil;
Your java pattern is giving errors in the editor for quotes. Can you check?
Thanks Mlanda.
Your java pattern is giving errors in the editor for quotes. Can you check?
Thanks Mlanda.
in which editor you are checking this, and what is the input you are checking for , can you please provide the same?
ASKER
I am checking it intellij
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
this is the one.
If someone can break this, I will grant all the points.
If someone can break this, I will grant all the points.
Open in new window
for more reference please visit the link belowJava - Regular Expressions
In ASp.Net it can be done with the below sample code
Add a using statement to reference the System.Text.RegularExpress
Open in new window
for more reference please visit the below linkHow To: Use Regular Expressions to Constrain Input in ASP.NET
hope this helps.