0

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.

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by mallikarjun_sg
0

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

Thank you..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.