forum

Home / DeveloperSection / Forums / How to Edit richtextbox to retain only words that contains underscore

How to Edit richtextbox to retain only words that contains underscore

Andrew Deniel183128-Sep-2013
I need some help to define how I can edit the text in the richtextbox. For example, I will paste the following text on the rtextbox:

*"Release to user USER the roles: VDSF_DFGSD_DFGD_DFG_DFG_1, DFGDFG_DFGDG_DFGDFG_DFGDG_2, DFGDFG_DFGDF_DFGD_DFGDF_SADFSDF_3, SDF_SDFSD_DFGH_HJFHJ_FGDFGD_4, DFGDFU_DFGDDFGD_DFGDF_5, Q_FGDFG_6, FF_DFGDF_7"*

Then I want to edit this to keep only the text that contains the underscore("_"), and separate them in a new line, like this:

VDSF_DFGSD_DFGD_DFG_DFG_1

DFGDFG_DFGDG_DFGDFG_DFGDG_2

DFGDFG_DFGDF_DFGD_DFGDF_SADFSDF_3

SDF_SDFSD_DFGH_HJFHJ_FGDFGD_4

SDF_SDFSD_DFGH_HJFHJ_FGDFGD_5

DFGDFU_DFGDDFGD_DFGDF_6

Q_FGDFG, FF_DFGDF_7


Updated on 28-Sep-2013

Can you answer this question?


Answer

1 Answers

Liked By