0

I like to extract some texts from string in php.

my sample string is as follows:

$str = "Drivers 2종보통 자동차운전면허증 (Driver\'s License) **11-16-044391-60** **황희준** **821121-1045915** 서울특별시 송파구 올림픽로 435, 223동 502호 (신천동, 파크리오) 면허 증 2026.01.01. 갱신기간 : ~ 2026.12.31. 조 건 :A OZ7T1V ense Dr i nse Dr **2016.07.08.** 서울지방경찰";

How can I get the text in bold in this string? This string is extracted from the scanning of a driver's license. So it is changing each time I scan a driver's license. but the format of the string is the same.

Any advice would be appreciated.

user1942626
  • 705
  • 1
  • 5
  • 13
  • Looks like you are looking to create a regex, but do not know where to get started. Please check [Reference - What does this regex mean](https://stackoverflow.com/questions/22937618) resource, it has plenty of hints. Also, refer to [Learning Regular Expressions](https://stackoverflow.com/questions/4736) post for some basic regex info. Once you get some expression ready and still have issues with the solution, please edit the question with the latest details and we'll be glad to help you fix the problem. – Wiktor Stribiżew Aug 20 '20 at 14:43
  • Note that questions that ask ["Give me a regex that does X"](https://meta.stackoverflow.com/q/285733) with no attempt are off topic on Stack Overflow. – Wiktor Stribiżew Aug 20 '20 at 14:43

0 Answers0