• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regular Expression help  RSS feed

 
Ranch Hand
Posts: 99
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

Im not sure why my code is not working properly.




Thanks Guys!!

Regards,
Mauro.
 
author & internet detective
Sheriff
Posts: 38052
606
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's more complicated than it needs to be.

This does what you want:


It matches = first so you only get values. Then it matches any characters until it hits =, comma or end brace. (or the end of the string)
 
Mauro Trevigno
Ranch Hand
Posts: 99
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:That's more complicated than it needs to be.

This does what you want:


It matches = first so you only get values. Then it matches any characters until it hits =, comma or end brace. (or the end of the string)



Thanks a lot Jeanne, you was right, thats more complicated than it need to be :P thanks again.

Regards,
Mauro.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!