and have the results show to end of line (or to end of word with different regex)voidtools search: some*.XML add_column:a a=:REGEX_EXTRACT($content,"ABCD:.*$")
result:
What is the syntax?ABCD: 23 or ABCD:my dog Spot ??
Thanks for any help
and have the results show to end of line (or to end of word with different regex)voidtools search: some*.XML add_column:a a=:REGEX_EXTRACT($content,"ABCD:.*$")
What is the syntax?ABCD: 23 or ABCD:my dog Spot ??
You were very close!don_don wrote: Wed Mar 05, 2025 3:03 pm some*.XML add_column:a a=:REGEX_EXTRACT($content,"ABCD:.*$")
Code: Select all
some*.XML add_column:a a:=:REGEX_EXTRACT($content:,"ABCD:.*")
Code: Select all
some*.XML regex:content:(ABCD.*) add-column:regular-expression-match-1
Code: Select all
some*.XML regex:fromdisk:content:(ABCD.*) addcol:1
Code: Select all
SUBSTITUTE(text,?,"") where the ? is any of these experiments:
- triple quotes """
- ":
- "":"
- escaping double quote inside double quotes "\""
Code: Select all
some*.XML add_column:A A:=REGEX_EXTRACT($content:,"ABCD: ""(.+?)""")
Code: Select all
ABCD="9.51"Code: Select all
add_column:a a-label:=ABCD a:=REGEX_EXTRACT($content:,"ABCD=""(.+?)""")