how can I use word document and reg ex to replace certain text. I Tried replace text but the document is long
First read whole word using read text activity…then use regex to find the replace text you need
Then use the output of regex which is the exact string you need in word in replace text activity
Cheers
so I look for the activity find matching pattern (string) then use the replace word document
the replace text in document keeps giving me an error because the 255 words what should I do please .
replace text in document
message:replace parameter must be at most 255 charcaters long (parameter ; Replace)
@mma - Can you provide more details? For example, some screenshots. The more you give us, the better our answers can help you.
yes , I was using word {Replace Text in Document }that was the error I got and now with the Replace Text Word I am not getting that error.
** My Question is I have a word document Template and that word document that is basically constantly changing information example Name, Version Number etc. The word document that is constantly changing has to make changing to the template ex: Bot reads the word document &make changes to the words in the template that has to be changed like the Name , or Date . Each time it runs it will be new information in that template to send an email. will USING Replace Text word work or is there any way to get this done ?Thank you
Looks like the text you want to replace is very huge…why not try to replace smaller ones or in parts so that you dont get this issue
Cheers
I am not sure what you mean and yes my word document is huge . ANY suggestions easier way to get a solution
Word doc can be huge …but the phrases you are replacing are also huge?
Did you try without word scope there would be another replace
Cheers
@mma - Okay, I’m still not sure what you need, but maybe try something like this:
First, get the Word Activities package.
Then, use this kind of approach.
Before
After
the phrases im replacing them with is not huge
I have tried that but i get an error message because the file is huge.My Question is I have a word document Template and that word document that is basically constantly changing information example Name, Version Number etc. The word document that is constantly changing has to make changing to the template ex: Bot reads the word document &make changes to the words in the template that has to be changed like the Name , or Date . Each time it runs it will be new information in that template to send an email. will USING Replace Text word work or is there any way to get this done ?
as per error it says it crosses the limit…may be a wrong phrase is retreived from regex…check thay
cheers
Hi do you think you show me an example not sure why the changes are not being changed.
first I used read word- it does read teh document then I used replace rgex then I DID READ Document again which is the template that need to be changed to send email. only thing bot is doing is reading both documents
May be the regex is wrong…
Can you give a sampel word and what regex you are using what to be extracted/replaced here
Cheers
2 Word Douments
First one example has information like the version number … bot has to read the data and change that for the 2nd document
2nd word Document is a basic word document that wants the version number…(which will be coming from the first word document information.
basically extracting certain information from one word to another
@`
please show actual files with no confidential data…so that we cn check…also check if regex is getting any data or not
cheers