Hello,

I need a pattern for the following use cases: I am using Java

1. var so = nokia.device.load('abc','abc');
2. var so = nokia.device.load("abc","abc");
3. var so = nokia.device.load("abc");
4. var so = nokia.device.load('abc');
// 5. var so = nokia.device.load('abc'); (Line is commentted)
/*
function init()
{
if (window.menu) {
// set tab-navigation mode and hide softkeys
widget.setNavigationEnabled(false);
var so = nokia.device.load("abc");(Line is commentted)
}
*/

I need a regex pattern which will be give me only the function statments which are listed in bold and NOT italic format function statements as those statements are commented.

Basically, the pattern should give me the statments which are not commented.
Please help me, its urgent.

Thanks,
Mallikarjun.

I have got answered in other forum. Pattern is ^var *.*nokia[.]device.*[)] *;$

Thank you..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.