Title: Warning: preg_replace(): Unknown modifier
Last modified: August 22, 2016

---

# Warning: preg_replace(): Unknown modifier

 *  Resolved [sejb](https://wordpress.org/support/users/sejb/)
 * (@sejb)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/warning-preg_replace-unknown-modifier-2/)
 * I keep getting this error:
    Warning: preg_replace(): Unknown modifier ‘_’ in /
   home/stevenej/public_html/wp-content/plugins/json-content-importer/class-json-
   parser.php on line 226
 * My json is:
    { offset: 0, results: [ { age/_source: “45”, booking_date: “02/25/
   2015 04:48 PM”, last_name/_source: “Details.aspx?bi=207214”, last_name: “[http://apps2.polkcountyiowa.gov/inmatesontheweb/Details.aspx?bi=207214&#8221](http://apps2.polkcountyiowa.gov/inmatesontheweb/Details.aspx?bi=207214&#8221);,
   last_name/_text: “SWALLOW”, first_name: “SHANNON”, age: 45 } ]
 * I’ve tried the following:
    [jsoncontentimporter url=”[https://api.import.io/store/data/ca804644-f15a-429e-b700-3dc67ff04cea/_query?input/webpage/url=http%3A%2F%2Fapps2.polkcountyiowa.gov%2Finmatesontheweb%2F&_user=c41439a2-c6de-4271-a11e-ccc26c90059a&_apikey=DMJlETJdvpWw2A%2FzgY1kbMiLiSD5rQZSA%2FEzIg%3D%3D”numberofdisplayeditems=”1&#8243](https://api.import.io/store/data/ca804644-f15a-429e-b700-3dc67ff04cea/_query?input/webpage/url=http%3A%2F%2Fapps2.polkcountyiowa.gov%2Finmatesontheweb%2F&_user=c41439a2-c6de-4271-a11e-ccc26c90059a&_apikey=DMJlETJdvpWw2A%2FzgY1kbMiLiSD5rQZSA%2FEzIg%3D%3D”numberofdisplayeditems=”1&#8243);
   basenode=”results”]{last_name}{first_name}{age} [/jsoncontentimporter]
 * Any ideas?
 * [https://wordpress.org/plugins/json-content-importer/](https://wordpress.org/plugins/json-content-importer/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/warning-preg_replace-unknown-modifier-2/#post-5836602)
 * Hi sejb,
 * the “/” in “last_name/_source” etc. confuses PHP here. I’ll fix this.
 * Bernhard
 *  Thread Starter [sejb](https://wordpress.org/support/users/sejb/)
 * (@sejb)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/warning-preg_replace-unknown-modifier-2/#post-5836682)
 * Thanks Bernhard. Will the fix be updated on wordpress.org or do I need to download
   the fixed version elsewhere?
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/warning-preg_replace-unknown-modifier-2/#post-5836724)
 * This will be fixed in Version 1.1.2 wich is delivered by a wordpress.org update
   at the weekend.
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/warning-preg_replace-unknown-modifier-2/#post-5836782)
 * Hi sejb,
 * check
    [https://downloads.wordpress.org/plugin/json-content-importer.1.1.2.zip](https://downloads.wordpress.org/plugin/json-content-importer.1.1.2.zip)
   for the next version. The “/” problem at “age/_source” etc. should not occur 
   any more. Use {age/_source}
 * Can you please check this for your JSON. With my test-JSONs this is working.
 * Best
    Bernhard
 * PS: Hey other people! Thanks for downloading my plugin. Thanks to the donation
   of other people this bugfix is now available. All donataror are completely free
   in the amount, so you are. I’m looking forward for your donation!
 *  Thread Starter [sejb](https://wordpress.org/support/users/sejb/)
 * (@sejb)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/warning-preg_replace-unknown-modifier-2/#post-5836783)
 * Bernhard,
    I just tested it and it is working perfectly to import the data. Now
   I’m just working on seeing if the plug-in can accomplish what I’m attempting 
   to do.
 * Thanks so much for all of your help! I really appreciate it.
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/warning-preg_replace-unknown-modifier-2/#post-5836784)
 * sejb,
 * very good!
    Feel free to rate the plugin. or donate 😉

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Warning: preg_replace(): Unknown modifier’ is closed to new replies.

 * ![](https://ps.w.org/json-content-importer/assets/icon-256x256.png?rev=3464653)
 * [Get Use APIs - JSON Content Importer](https://wordpress.org/plugins/json-content-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-content-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-content-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/json-content-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-content-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-content-importer/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/warning-preg_replace-unknown-modifier-2/#post-5836784)
 * Status: resolved