hello all,
my question is if its possible to capture a concrete data from txt.
for example I have this txt.
GROUP=PEPAPEA AUTH=USE CONNECT-OWNER=PEPPEPEPE
CONNECTS=10,683 UACC=NONE LAST-CONNECT=09.215/18:57:44
CONNECT ATTRIBUTES=NONE
How I can capture all the variables that contains GROUP= (in this case PEPAPEA)
Is possible ??
Capture specify data from text
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 5
- Joined: Fri Jun 11, 2010 7:13 am
hello! and thanks for the interest
I try to explain me better. (and sorry for my english)
for expample:
after text:
fdkjshfjdskf
fkjdslkfjklds
fdkjdlsfklsdkñf
kdlfskñlfkñlds
GROUP=123445
dflkjls
fjkldsfjkldsj
dfjsklfjkld
GROUP=1111111
kdjfks
dsfjkjf
GROUP=1aaaaa
fjdskfjkldsj
before:
123445
1111111
1aaaaa
if not possible, with this is ok:
GROUP=123445
GROUP=1111111
GROUP=1aaaaa
I want to capture all Group=* contents.
Thank you.
I try to explain me better. (and sorry for my english)
for expample:
after text:
fdkjshfjdskf
fkjdslkfjklds
fdkjdlsfklsdkñf
kdlfskñlfkñlds
GROUP=123445
dflkjls
fjkldsfjkldsj
dfjsklfjkld
GROUP=1111111
kdjfks
dsfjkjf
GROUP=1aaaaa
fjdskfjkldsj
before:
123445
1111111
1aaaaa
if not possible, with this is ok:
GROUP=123445
GROUP=1111111
GROUP=1aaaaa
I want to capture all Group=* contents.
Thank you.
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
I suspect you have your after and before labels the wrong way around.
Here's one way to do what you want.
Use Posix regular expression syntax:
Search | Find... (<F5>):
Edit | Copy Other | Bookmarked Lines
3. Open a new document and paste the lines there.
4. If there's only one GROUP=value pair on any line use
Here's one way to do what you want.
Use Posix regular expression syntax:
1. Bookmark all the lines containing a GROUP=value pair:Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
Search | Find... (<F5>):
2. Copy the bookmarked lines into the paste buffer:Find what: \<GROUP=
[X] Regular expression
Mark All
Edit | Copy Other | Bookmarked Lines
3. Open a new document and paste the lines there.
4. If there's only one GROUP=value pair on any line use
Find what: .*\<GROUP=([^ ]+).*
Replace with: \1
[X] Regular expression
Replace All