PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Sep 20, 2017 4:09 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Apr 25, 2017 6:53 am 
Offline
Forum Newbie

Joined: Tue Apr 25, 2017 6:43 am
Posts: 1
Hello everyone,

I would like to write a script that simplifies text by deleting and bolding some words.

For example, in gray my starting text and in red my text after the script:

Original text :


Experience
Sidra Capital
CEO
Company NameSidra Capital
Dates EmployedDec 2015 – Present Employment Duration2 yrs LocationJeddah
Sidra Capital
DCEO
Company NameSidra Capital
Dates EmployedMar 2010 – Nov 2015 Employment Duration5 yrs 9 mos LocationJeddah
Aayan Capital
Head of Corporate Finance & Advisory
Company NameAayan Capital
Dates EmployedAug 2008 – Mar 2010 Employment Duration1 yr 8 mos
HSBC Amanah
Head of Asia Origination
Company NameHSBC Amanah
Dates EmployedDec 2004 – Aug 2008 Employment Duration3 yrs 9 mos LocationDubai, Kuala Lumpur
Islamic Development Bank
Resource Mobilisation Officer
Company NameIslamic Development Bank
Dates Employed1998 – 2004 Employment Duration6 yrs LocationJeddah
Education
ICMA Centre
ICMA Centre
Degree Name PhD Field Of Study Finance
Dates attended or expected graduation 1995 – 1998
ICMA Centre
ICMA Centre
Degree Name MSc Field Of Study International Securities, Investment and Banking
Dates attended or expected graduation 1994 – 1995
Brunel University
Brunel University
Degree Name BSc Field Of Study Economic and Business Finance
Dates attended or expected graduation 1990 – 1994


Finale one :


Experience
CEO at Sidra Capital
Dec 2015 – Present (2 yrs)
Jeddah
DCEO at Sidra Capital
Mar 2010 – Nov 2015 (5 yrs 9 mos)
Jeddah
Head of Corporate Finance & Advisory at Aayan Capital
Aug 2008 – Mar 2010 (1 yr 8 mos)
Head of Asia Origination at HSBC Amanah
Dec 2004 – Aug 2008 (3 yrs 9 mos)
Dubai, Kuala Lumpur
Resource Mobilisation Officer at Islamic Development Bank
1998 – 2004 (6 yrs)
Jeddah
Education
ICMA Centre
PhD Field Of Study Finance
1995 – 1998
ICMA Centre
MSc, International Securities, Investment and Banking
1994 – 1995
Brunel University
BSc, Economic and Business Finance
1990 – 1994


For that I create on a textarea with a submit button.
https://gyazo.com/9388dd384b2f5e0b4fbc4d7dcf7283d4
Might you give me the best way to do this script ? I saw that I might use preg_match but I don't think that is the best function for what I want to do.

Thank you for your help,
Léo


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Exabot [Bot] and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group