Rep: (161)
* Bill baklushi , hmm, the age of the Internet, and the book is only in print, a strange author. You won’t be able to find the text you need by text search ...

Posted on 08/29/2019, 19:15:

It will be necessary to try to translate into a text view



Rep: (161)
* Bill baklushi downloaded for free?



Rep: (161)
Bill Baklushi @ 08.28.19, 0:08*
Generally, the last paragraph in>>this post<<(book)
Bill Baklushi @ 04/14/19, 10:40*
downloaded the first self-instruction manual that came across then, which Google issued (and still issues on the very first page): Ben Fort. Regular expressions 10 minutes per lesson
Have you read the original, in English?



Rep: (161)
Bill Baklushi @ 08.28.19, 17:57*
viewing to the left / back (from the search) ... this arrow points there
Still, it’s not clear why the left arrow is needed to indicate if the group is already on the left. Without an arrow, how does the interper handle the expression? That is, without an arrow, the first group for him what is considered? Also, the arrow between the "?" and "!", it would be more logical<?!
Bill Baklushi @ 08.28.19, 17:57*
plus using "!" "negation" is added (i.e., "not preceded / not searched") ...
Well, I already know about that.
Bill Baklushi @ 08.28.19, 17:57*
well this is the original “disease” of Regex: the same symbols are used for different teams and it’s easy to get confused / accept one after another
Are you talking about what exactly?
Bill Baklushi @ 08.28.19, 18:47*
if on Android, there are several applications in the Market
I’ve been using the first one for two weeks now, and it didn’t help me resolve the issue with
Camel @ 08/22/19, 15:41*
I need to find all the words "BC", at the beginning of which there is no "$", but are found with "$" and without.
since apparently the developer also does not know about the arrow. With an arrow does not give an explanation of the first group.
Attached Image
Anyway, as far as I read about regular expressions, there was nothing about the arrow. I don’t know what to write on Google to find about the arrow. Can you throw links about it?

Posted on 08/27/2019, 11:12 PM:

Bill Baklushi @ 08.28.19, 18:47*
How then to find?
I wrote this for the one I quoted, a semi-territorial question. It is clear that the issue has already been resolved with your help.

Post has been editedCamel - 27.08.19, 23:13



Rep: (161)
LVware @ 08/22/19, 16:28*
On BRE and ERE
How to find out what is used in the program? I use MT Manager to work with text.
LVware @ 08/22/19, 16:28*
^ BC - find a line starting with BC
I know this, but if the search text is not at the beginning of the line, then how can I find it? Even if the text is not at the beginning of the line, the result is the same.
Attached Image
LVware @ 08/22/19, 16:28*
\ $ & - replace with $ and the found string
Does not work, replaces with "$ &"
Attached Image

Look for (BC) and change to A (\ 1), get ABC.
Result as above. It turned out only by writing in the replacement "$ 1".
It’s just that you mixed up in which direction he should “look”.
And what indicates where to look? I didn’t seem to indicate anything and didn’t even think that it was necessary to indicate anything else, only from you I found out. Is the fact that the group is to the left of BC not an indication that the group needs to be searched on the left?

Bill Baklushi @ 08/23/19, 12:41*
(?<! \ $) BC (? = \ S)
Oh, it works as it should! And what does "<"?

And yet, to replace, as I need, I did so
(?<! \ $) (BC) (? = \ S)
and in the replacement line wrote "\ $$ 2", since "BC" is in the second group. But the text is simply replaced with nothing, as with "\ $$ 3", and only with "\ $$ 1" is replaced with "$ BC". Why so? Indeed, in the expression there are three groups, and the replacement works for the second group as if it were the first.

Attached images
Attached Image


Post has been editedCamel - 27.08.19, 18:00
Reason for editing: Removed the extra word "works" in the last sentence



Rep: (161)
Toxandt @ 08.27.19, 10:52*
out of 10 digits?
In random order or ascending?



Rep: (161)
Zaskock light @ 08.20.19, 20:23*
It works only when the page in the browser is loaded in the PC version.
Will it be finalized within six months to work with the mobile version of the page? On the computer, the assistant really helps out! And in mobile devices it is even more needed.

Post has been editedCamel - 25.08.19, 14:26
Reason for editing: Missing first "in" in last sentence



Rep: (161)
Please tell me, is it possible to replace text in a replacement, but only add text? That is, for example, there is such a text
echo 1242>$ input_boost_freq
BC a-w $ input_boost_freq
and you need to add the dollar symbol to "BC" without introducing "$ BC" in the replacement, so that it turns out like this
echo 1242>$ input_boost_freq
$ BC a-w $ input_boost_freq
That is, so that it is not necessary to insert in the replacement all the text found, but only what needs to be added to it.
When you need to add text to a long found line in one place, it is inconvenient to select and copy all this, and then paste it into a replacement, since the line is long. Well, the lines above are for example, often there are long lines.

Post has been editedCamel - 22.08.19, 15:44



Rep: (161)
And tell me why the expression does not work as it should?
(?! \ $) BC (? = \ S)
Attached Image
I need to find all the words "BC", at the beginning of which there is no "$", but are found with "$" and without.



Rep: (161)
custom script support
Hooray, finally! Immediately installed the update, climbed into the extension and began to use the "Disable AMP" extension, otherwise AMP got tired.
The extension really lacks the function of opening a page in a new tab, this is the main reason why APM got tired, since pages without APM immediately open in a new tab, and with APM the search page is reloaded when you return to it. Can you add such a function?



Rep: (161)
The line "tcp_fin_timeout = 30" contains an error, an extra square bracket. In build.prop, the line is added without error.

Attached images
Attached Image



Rep: (161)
And yet, is it possible to quote multiple paths in a variable?
G = "/ sys / devices / system / cpu / cpu0 / cpufreq / scaling_governor / sys / devices / system / cpu / cpu1 / cpufreq / scaling_governor / sys / devices / system / cpu / cpu2 / cpufreq / scaling_governor / sys system / cpu / cpu3 / cpufreq / scaling_governor "
Would the shell count them as one way?

Post has been editedCamel - 19.08.19, 12:52



Rep: (161)
Do I understand correctly that redirection of standard output is possible only in one file? That is, this
echo 384000>/ data / evt-test / cpu0 / data / evt-test / cpu1 / data / evt-test / cpu2 / data / evt-test / cpu3
shouldn't work? As a result of executing such a script, the following text is generated in the file / data / evt-test / cpu0
384000 / data / evt-test / cpu1 / data / evt-test / cpu2 / data / evt-test / cpu3
In the remaining files, nothing is formed. And the logic is not clear, why, in addition to the text 384000, file paths are also added to the file? I indicated them after the redirection symbol. I ran the script with the -x switch, the result was very surprising.
+ >/ data / evt-test / cpu0
+ echo 384000 / data / evt-test / cpu1 / data / evt-test / cpu2 / data / evt-test / cpu3
That is, as I understand it, the interpreter first executes the flow redirection command, and then the echo command, and for some reason considers that the file paths following the first path are included in the echo command. Damn, I read so much about different shells, and nowhere has been written about such processing of commands.



Rep: (161)
* tilks , hmm, a hike in the page layout bug. From the browser in the smartphone I looked at the mobile version, it looks like yours. It will be necessary to write in the bugtracker.

Posted on 08/19/2019, 10:54:

On the second screen, an unofficial client?


Posted on 08/19/2019, 10:55:

maybe easier tag
Everyone needs to know about this bug, otherwise there will be the same debate.


Post has been editedCamel - 19.08.19, 10:54



Rep: (161)
Through client
MemTotal: 295972 kB
MemFree: 3632 kB
Buffers: 9420 kB
Cached: 70196 kB
SwapCached: 0 kB
Active: 91860 kB
Inactive: 142588 kB
Active (anon): 66124 kB
Inactive (anon): 94860 kB
Active (file): 25736 kB
Inactive (file): 47728 kB
Unevictable: 5520 kB
Mlocked: 0 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 295972 kB
LowFree: 3632 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 160 368 kB
Mapped: 21716 kB
Shmem: 632 kB
Slab: 22624 kB
SReclaimable: 4232 kB
SUnreclaim: 18392 kB
KernelStack: 4824 kB
PageTables: 9016 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 147984 kB
Committed_AS: 1631556 kB
VmallocTotal: 409600 kB
VmallocUsed: 30488 kB
VmallocChunk: 343,044 kB

Via browser
MemTotal: 295972 kB
MemFree: 3632 kB
Buffers: 9420 kB
Cached: 70196 kB
SwapCached: 0 kB
Active: 91860 kB
Inactive: 142588 kB
Active (anon): 66124 kB
Inactive (anon): 94860 kB
Active (file): 25736 kB
Inactive (file): 47728 kB
Unevictable: 5520 kB
Mlocked: 0 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 295972 kB
LowFree: 3632 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 160 368 kB
Mapped: 21716 kB
Shmem: 632 kB
Slab: 22624 kB
SReclaimable: 4232 kB
SUnreclaim: 18392 kB
KernelStack: 4824 kB
PageTables: 9016 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 147984 kB
Committed_AS: 1631556 kB
VmallocTotal: 409600 kB
VmallocUsed: 30488 kB
VmallocChunk: 343,044 kB


Post has been editedCamel - 19.08.19, 10:49



Rep: (161)
* tilks Are you watching from a smartphone or computer? Or do you have a monospace font? Can you show how it looks? There are at least 10 spaces. Check for yourself, select the text. It is very strange, how can you not notice that there are more than one gaps.

Attached images
Attached Image
Attached Image
Attached Image
Attached Image


Post has been editedCamel - 18.08.19, 23:32



Rep: (161)
Tilks @ 08/18/19, 18:13*
the task was with one space
You seehereonly 1 space?
Tilks @ 08/18/19, 18:13*
\ 1 or $ 1 depends, probably, on the language where you implement it, here is the topic about Regular Expressions.
So I do not develop a program, I use it

Post has been editedCamel - 18.08.19, 18:36



Rep: (161)
* tilks , with your expression it turns out like this:
Attached Image


By the way, you forgot to add "+" after the first "\ s", without it the expression does not find a string in any program. I thought you will notice in the second expression, I added in the first. And the replacement pattern "\ 1" also does not work, it only works with "$ 1". In general, your expression did not work. But even with corrections, the Cool Tool for some reason inappropriately processes the expression. I checked the expression in MT Manager, as amended, the search and replacement work correctly.
Attached Image
Attached Image



C "+" finds what you need
Attached Image



With the replacement pattern "\ 1", replaces with "1"
Attached Image


With all the corrections everything works as it should
Attached Image



* som_bbs ,
with your expression it turns out like this.
Attached Image


Moreover, if we remove from the beginning of the expression the sign of the beginning of the line, then we get almost what we need.
Attached Image


In MT Manager, the expression works adequately in both cases.
Search
Attached Image
Attached Image



Replacement
Attached Image
Attached Image


I decided to remove the expression ".* "so that" kb "doesn’t get into the search, it works adequately in MT Manager, and in the Cool Tool it turns out like on the first screen.

In any case, thanks to both of you, otherwise I would have been tormented without knowing that the Cool Tool inadequately handles expressions.



Rep: (161)
MemFree: \ s \ d +
So the text gets into the search. And how to make only the amount of memory? Expression like "number in the second line"

Posted on 08/16/2019, 19:35:

In the program, you can still enter the replacement pattern, maybe with it you can capture the right one? Are replacement patterns generally related to regular expressions?

Attached images
Attached Image


Post has been editedCamel - 16.08.19, 19:37



Rep: (161)
Please tell me the expression to find the selected line, but with any numbers and any number
MemTotal: 295972 kB
MemFree:3632 kB
Buffers: 9420 kB
Cached: 70196 kB
SwapCached: 0 kB
Active: 91860 kB
Inactive: 142588 kB
Active (anon): 66124 kB
Inactive (anon): 94860 kB
Active (file): 25736 kB
Inactive (file): 47728 kB
Unevictable: 5520 kB
Mlocked: 0 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 295972 kB
LowFree: 3632 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 160 368 kB
Mapped: 21716 kB
Shmem: 632 kB
Slab: 22624 kB
SReclaimable: 4232 kB
SUnreclaim: 18392 kB
KernelStack: 4824 kB
PageTables: 9016 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 147984 kB
Committed_AS: 1631556 kB
VmallocTotal: 409600 kB
VmallocUsed: 30488 kB
VmallocChunk: 343,044 kB

And is it possible with regular expressions to convert this string to megabytes? Mathematically I know how to do this: the amount of memory needs to be divided by 1024.

This is necessary to display the free RAM programCool tool

Post has been editedCamel - 16.08.19, 19:17

Full version

Help     rules

Now: 08/31/19, 04:21