hpwControl Plugin - Early Preview for Feedback

Questions about NeoBook PlugIns

Moderator: Neosoft Support

User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Re: hpwControl Plugin - Early Preview for Feedback

Post by HPW »

Hello,

I have watched your youtube video and I am not able to reproduce this in my latest englisch neobook version.
And it is nothing for sure that a plugin itself would do, since this function is code from the neobook IDE.
So neosoft should have a look.
Is there an official russian version?

Regards
Hans-Peter
mishem
Posts: 581
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwControl Plugin - Early Preview for Feedback

Post by mishem »

Is there an official russian version?
No. :(
User avatar
Leos
Posts: 178
Joined: Mon Apr 04, 2005 11:13 am
Location: Coimbra, Portugal
Contact:

Re: hpwControl Plugin - Early Preview for Feedback

Post by Leos »

After a few hours trying to implement a routine to sort ordered values ​​in a string I decided to do a search in the available plugins, and, among others, I found this command:

Code: Select all

hpwLineSort
(hpwControl Plugin)

That simple!

Thank you Hans Peter
mishem
Posts: 581
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwControl Plugin - Early Preview for Feedback

Post by mishem »

About gaps.
You can probably even add the command "Remove two or more spaces in a row"
User avatar
Leos
Posts: 178
Joined: Mon Apr 04, 2005 11:13 am
Location: Coimbra, Portugal
Contact:

Re: hpwControl Plugin - Early Preview for Feedback

Post by Leos »

yes, and if you use it with

Code: Select all

StrParse
you have a lot of nice things to do !

thanks
mishem
Posts: 581
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwControl Plugin - Early Preview for Feedback

Post by mishem »

Hello.
Prompt please, in compiling regular expressions is possible to specify case-insensitive mode?

It is necessary for example to find Jon, joN, jON, JoN, etc.

Tried to substitute \ i, may be there is some sort of other options?
User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Re: hpwControl Plugin - Early Preview for Feedback

Post by HPW »

Hello,

It works for me in the demo pub with:

Code: Select all

(?i)Jon
and in Source entry: Jon, joN, jON, JoN

http://regexpstudio.com/TRegExpr/Help/R ... yntax.html

Regards
Hans-Peter
mishem
Posts: 581
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwControl Plugin - Early Preview for Feedback

Post by mishem »

That's perfect! Thanks. I will continue to investigate.
mishem
Posts: 581
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwControl Plugin - Early Preview for Feedback

Post by mishem »

Hello!

Your example:
Image

I need to replace a pattern in a few lines.
Image

It is necessary as a result of three lines.
Image
Image

And it turns out only one.

Maybe replace the pattern in several lines?
User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Re: hpwControl Plugin - Early Preview for Feedback

Post by HPW »

Hello,

When I use the sample of 'Replace String' with the following params:

Code: Select all

(\+\d\d *)?(\(\d+\) *)?\d+(-\d*)*
and

Code: Select all

Zone code $1, city code $2. Whole phone number is  $&
Input field:

Code: Select all

Phone of hpwSoft in Germany is +49(5242) 999-97
Phone of hpwSoft in Germany is +49(5242) 999-98
Phone of hpwSoft in Germany is +49(5242) 999-99
The result seems what you want. So whats te question/problem?

Regards
Hans-Peter
mishem
Posts: 581
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwControl Plugin - Early Preview for Feedback

Post by mishem »

I for some reason only one row in the result.

video
http://rghost.ru/8PNrk2nXw

It's hard to explain. :(
There are for example three lines matching a regular expression.
Two lines must remain unchanged, and the fifth change the pattern.
mishem
Posts: 581
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwControl Plugin - Early Preview for Feedback

Post by mishem »

In RegexBuddy.

Regular expression:

Code: Select all

<tr.+?(<td>.+?</td>).+?(<td>.+?</td>).+?(<td>.+?</td>).+?</tr>
The replacement string:

Code: Select all

<tr>${1}
${2}
</tr>
Text verification:

Code: Select all

<tr class="orangeRows">
							        <td>strong&#32;name</td>
							        <td>&#1089;&#1090;&#1088;&#1086;&#1075;&#1086;&#1077;&#32;&#1080;&#1084;&#1103;</td>
							        <td>strong&#32;name</td>
						        </tr>
<tr>
							        <td>Strong&#32;Lyrics</td>
							        <td>&#1075;&#1088;&#1091;&#1073;&#1099;&#1077;&#32;&#1090;&#1077;&#1082;&#1089;&#1090;&#1099;&#32;&#1087;&#1077;&#1089;&#1077;&#1085;</td>
							        <td>strong&#32;name</td>
						        </tr>
<tr class="orangeRows">
							        <td>strong&#32;password</td>
							        <td>&#1085;&#1072;&#1076;&#1077;&#1078;&#1085;&#1099;&#1081;&#32;&#1087;&#1072;&#1088;&#1086;&#1083;&#1100;</td>
							        <td>strong&#32;name</td>
						        </tr>
"Find and replace all matches" as a result of:

Code: Select all

<tr><td>strong&#32;name</td>
<td>&#1089;&#1090;&#1088;&#1086;&#1075;&#1086;&#1077;&#32;&#1080;&#1084;&#1103;</td>
</tr>

<tr><td>Strong&#32;Lyrics</td>
<td>&#1075;&#1088;&#1091;&#1073;&#1099;&#1077;&#32;&#1090;&#1077;&#1082;&#1089;&#1090;&#1099;&#32;&#1087;&#1077;&#1089;&#1077;&#1085;</td>
</tr>

<tr><td>strong&#32;password</td>
<td>&#1085;&#1072;&#1076;&#1077;&#1078;&#1085;&#1099;&#1081;&#32;&#1087;&#1072;&#1088;&#1086;&#1083;&#1100;</td>
</tr>
Something like this...

Now, the same thing needs to be done with the plug.
I can not do it. :(
User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Re: hpwControl Plugin - Early Preview for Feedback

Post by HPW »

Hello,

In your Video you use the 'Substitude String' sample. My answer was using the 'Replace String' sample above on top right of page 4.
There I put te sampe data and it works there.

Regards
Hans-Peter
mishem
Posts: 581
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwControl Plugin - Early Preview for Feedback

Post by mishem »

Hello,

'Replace String' is not appropriate.
It is necessary to precisely pattern.
For all rows regular expression is the same, and it is necessary simply to remove the last row.
Earlier, I wrote an example of what you need.

You can do that?
mishem
Posts: 581
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwControl Plugin - Early Preview for Feedback

Post by mishem »

I apologize for the translation. Do not take it literally.
Locked