D
D
DjPROgramiST2014-07-30 10:03:12
iOS
DjPROgramiST, 2014-07-30 10:03:12

How to find substring using regular expression in objective-c?

There is a line "content/files/get/some_name"
using a regular expression to replace "content/files/get/some_name" with "content/files/get/some_name.jpg"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s0L, 2014-07-30
@s0L

How about just adding an extension to the end of the string with stringByAppendingPathExtension:? Well, or pre-check using the pathExtension function?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question