Select only email from a message- Open Refine - openrefine

I have columns with several cells like this:
"Hi my email is mail#mail.com feel free to email me!"
"Hey, this is my email: mail2#mail.com"
I want to create a new column from there with this cells:
"mail#mail.com"
"mail2#mail.com"
Thank you!

You can search the for mail adresses with regex (take a look here). An easy example for such a regex would be /\b\S+#\S+\.\S+\b/
To use it in OpenRefine:
Click on column
"Edit column"
"Add column based on this column…"
set "New column name"
set "Expression" with something like value.find(/\b\S+#\S+\.\S+\b/)[0]
Ok

Related

MS Word: Manipulating bookmark text values based on checkbox values

I could use some guidance on the following:
I am creating a Word form that generates barcodes with fieldcodes/bookmark text:
{DISPLAYBARCODE "{REF TXTUSN}" CODE128 \T \H 850 \R}
Basically I am creating a form with multiple options generate barcodes that contain the user's selections. The form then reaches some staff that transcribed it in the past. Now they just scan the barcode(s) and go on their merry way.
I have multiple checkbox formfields - hypothetically let us say the options are
Male
Female
And lets say that checkbox 1 has the bookmark name "checkMale" & checkbox 2 has bookmark name "checkFemale".
Now I would like for my DISPLAYBARCODE field to generate a barcode with the text value of "Male" or "Female" depending on the box checked.
My ability to manipulate these with VBA code is limited. If there is a way to do this without VBA please help me! If you believe VBA is the best option please set me on the right path. My google-fu has proved fruitless.
Thanks in advance,
J.
You cannot test a checkbox formfield's status via field coding - a macro would be required. A non-macro solution would be to use a dropdown formfield, which also has the advantage that only one item can be chosen. If, for example, your dropdown has the options:
Choose
Male
Female
you might use a DISPLAYBARCODE field coded as:
{DISPLAYBARCODE "{REF Dropdown1}" CODE128 \T \H 850 \R}
or:
{IF{REF Dropdown1}<> "Choose" {DISPLAYBARCODE "{REF Dropdown1}" CODE128 \T \H 850 \R}}

match characters from different sheet and dirrefernt field with vba

I'm new to this forum and Vba.I have a bank statement to reconcile which is contain few characters on the " detail" field match to my "info" sheet client list. the charges and interest need to find automatically my default nominal list in "info " sheet.id it possible to match with a vba button?please see my attched sample work sheet.
my attchment
Yes, it is possible to "match with a VBA button".

VBA - Word Table : default value and combo box

I have Word Tables, and I don't find how to affect default values for certain columns...
When inserting a new line, I would like a certain column to have a certain drop-down list without user having to do it himself.
To illustrate my thoughts, here is a small image of what I'm looking for
I really don't find how to manipulate my table for it to ends up like this, so I would like to request your help.
When looking on the web for this, I only find information about table default style and no default Value.
So I would like to ask. Is this possible? If yes, how to do it?
I am looking for either a VBA code to set my column default value (which would be great), or even a way to do it in Word GUI at first. Or, obviously, an answer that would tell me that it is impossible to do in Word.
PS: the extremely easy equivalent in Excel of what i'm looking for:
Thanks in advance!
In the GUI:
Click the cell where you would like your dropdown.
In menu, switch to "Developer Tools"
Insert a Dropdown control ("Controls" are, the one in the middle)
In the ribbon, click "Design mode" (I have German Word so the actual name might differ), "Properties"
Now you can enter your options
Alternatively via VBA, I got this with the macro recorder; should give you a start:
[Cell].Range.ContentControls.Add (wdContentControlComboBox)
ActiveDocument.ToggleFormsDesign
Selection.ParentContentControl.DropdownListEntries.Clear
Selection.ParentContentControl.DropdownListEntries.Add Text:="Yes", Value _
:="Yes"
Selection.ParentContentControl.DropdownListEntries.Add Text:="No", Value:= _
"No"

Using a page item as its value in LIKE statement

I want to get all the titles from a table in an interactive report where a certain word is found within another column of that table (article column). The word would be input through a text field called "TEXT". This is what I have in the interactive report region source:
SELECT title as "Word found in"
FROM articles
WHERE article like '% :TEXT %'
I'm not sure how to deal with the "TEXT" text field, this worked for equal (as in WHERE something =: TEXT)
Thanks!
SELECT title as "Word found in"
FROM articles
WHERE instr(TEXT, article)>0;
I'm not at all sure what you're doing here, but this may work for you.

Replacing captions in Word documents with automated numbering, using VBA macro

I have a large MS Word document with a lot of captions named like this:
"Map X. Map title.". The problem is that the "X" are not in ascending order. I'd like to fix it running VBA macro that will replace the "X" to a right number.
I have no problem with replacing strings but I would like to know what should I replace the "X" with (what is the type of object associated with automated numbering).
The numbers will go up for every type of Caption (e.g. "Map", "Chart"), without restarting inside chapters.
Okay, I found something that might help. There is a type of Field that you can add that will create a automatic number sequence for a given reference. So will we take your example above "Map X. Map title", if you can set you code to select 'X' and then follow it with...
MyRef = "Map"
Selection.Fields.Add(Selection.Range, , "SEQ " & MyRef, False).Update
Once that's done you may need to press ALT+F9, to hide/show the Field codes