Skip to content

Commit c662d7f

Browse files
committed
ISSUE-CELLSCLOUD-13528: Add remove text exmaples.
1 parent d5849b4 commit c662d7f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

examples/BookText.xlsx

3.75 KB
Binary file not shown.

examples/Example_TextProcessing_40.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,10 @@
4343
# ExtractTextType: ExtractFirstCharacter, ExtractFirstWord, ExtractLastCharacter, ExtractLastWord, ExtractTextBefore, ExtractTextAfter, ExtractBetweenSpecifiedCharacters, ExtractAllNumbers, GetTextFromAnyPosition
4444
#
4545
# instance.extract_text(ExtractTextRequest("BookText.xlsx", "ExtractTextBefore", ";","","","","I2:I11" ,worksheet= "HumanResources",range="G2:G11" ) , local_outpath = "out15.xlsx")
46+
47+
instance.remove_characters(RemoveCharactersRequest("BookText.xlsx", "RemoveSubString", "Aspose", "Aspose" , case_sensitive = False), local_outpath = "out16.xlsx")
48+
instance.remove_characters_by_position(RemoveCharactersByPositionRequest("BookText.xlsx", worksheet="Text",all_characters_before_text="you", all_characters_after_text="Aspose" ), local_outpath = "out17.xlsx")
49+
instance.remove_characters_by_position(RemoveCharactersByPositionRequest("BookText.xlsx", worksheet="Text",all_characters_before_text="you", all_characters_after_text="Aspose",case_sensitive= True ), local_outpath = "out18.xlsx")
50+
instance.remove_duplicate_substrings( RemoveDuplicateSubstringsRequest("BookText.xlsx", ";",worksheet="Text"), local_outpath = "out19.xlsx")
51+
instance.remove_duplicate_substrings( RemoveDuplicateSubstringsRequest("BookText.xlsx", ";",worksheet="Text", case_sensitive=True) , local_outpath = "out20.xlsx")
52+
instance.split_text( SplitTextRequest("BookText.xlsx", ";",worksheet="HumanResources",how_to_split="SplitToColumns", out_position_range="H2:H11", range="G2:G11", keep_delimiters_in_resulting_cells=True,keep_delimiters_position="AtTheBeginning"), local_outpath = "out21.xlsx")

0 commit comments

Comments
 (0)