regex - php regular expression help -


i have string. there need 1 word. word between space , point. example

' 'word. 

if find many same pattern words, need first word.

as far understand, try :

/\s(\w+)\./  preg_match('/\s(\w+)\./', 'abc. def. ghi.', $m); echo $m[1],"\n"; 

output:

def 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -