Tôi có một cái gì đó như chuỗi [[user.system.first_name]][[user.custom.luid]] blah blah
Trích xuất dữ liệu giữa các ký tự bằng regex?
Tôi muốn để phù hợp với user.system.first_name
và user.custom.luid
tôi đã xây dựng /\[\[(\S+)\]\]/
nhưng nó phù hợp với user.system.first_name]][[user.custom.luid
.
Bất kỳ ý tưởng nào tôi đang làm sai?
'/ \ [\ [(\ S +?) \ ] \]/' –
Po ssible trùng lặp của [Regular expression để trích xuất văn bản giữa các dấu ngoặc vuông] (http://stackoverflow.com/questions/2403122/regular-expression-to-extract-text-between-square-brackets) –