I have one string:
When i try:Code:asdassda_folder_asdswdfd_file_asedswfds
The output is:Code:test = re.findall("_(.+)_", "asdassda_folder_asdswdfd_file_asedswfds")
folder_asdswdfd_file
And i need to capture _folder_ and _file_ , the other text that surround can change.
Tryed several ways but couldn´t success, perhaps someone can point me to the right direction.
Thanks in advance.




Reply With Quote