Jump to content


Check out our Community Blogs

agnl666

Member Since 06 Feb 2010
Offline Last Active Jul 25 2012 08:21 AM
-----

Posts I've Made

In Topic: Who Owns This Website?

26 June 2012 - 09:58 AM

What?


He has an accent.

In Topic: Hello To All!

26 June 2012 - 09:55 AM

Hello!

I would start with C++ and then Java. It is nice to know C++ because I think knowing C++ gives you a better general understanding of what is happening behind the scenes and it demands a deeper knowledge of programming than some more modern languages. I have recently been interested in learning Javascript and Coffeescript myself though.

In Topic: Java Regex Troubles

30 May 2012 - 06:58 AM

I will take this into consideration. I am currently parsing for more than one tag and am using separate patterns for each tag I am parsing for. The patterns are not being reused so I will add it to my list of things to do to go through the code and unify all of my separate regexs into a single regular expression.

300ms is a small gain though better than nothing.

In Topic: Java Regex Troubles

30 May 2012 - 05:29 AM

Thank you. I did not even consider it though the front .* was what was consuming what I wanted.

The regex I am going to end up using is

.+?tag1:\\s+(.+?)\\s+(tag1|tag2):.+

And I am wondering, is it more efficient to make the regex more specific or less?

Yet again, thank you very much wim DC.

In Topic: Java Double Number Format

29 May 2012 - 10:45 AM

Another option for formatting values into strings is to use the DecimalFormat class.

(DecimalFormat) - http://docs.oracle.c...imalFormat.html

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download