Azzera filtri
Azzera filtri

How to cut out a string

3 visualizzazioni (ultimi 30 giorni)
Josy M
Josy M il 9 Lug 2020
Commentato: Josy M il 9 Lug 2020
Hello,
This_00815_is_a_r0andom_string78_T890_
rThis_0015_is_a_r0andom_ng78_T790_adding_hrlo => SEE EXAMPLE BELOW
eeThis_015_is_a_r0andom_sti23ng78_T590_fany_leo_caro
This_0023815_is_a_r0andom_string7428_T110_
fThis_015_is_a_rdom_string748_T800_
Th23is_030815_is_a_r0andom_string78_T830_tzz_gggg_sdafsa
Tshis_00815_is_a_r0an3dom_sring78_T190_
How i get the "bold" string in a for loop (automaticaly)? The bold string begins/starts after T + 3 digit number_!
For example T790_ -> .......T790_adding_hrlo -> adding_hrlo is my result.
Thanks for some advices

Risposta accettata

madhan ravi
madhan ravi il 9 Lug 2020
regexp(s,'(?<=T\d{3}_).*', 'match') % s your string
  1 Commento
Josy M
Josy M il 9 Lug 2020
Thank you for your good answer. It helps me.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by