Home Download Buy Blog Forum Support

Regex: replace .count(...) with .where(...).count

Regex: replace .count(...) with .where(...).count

Postby steve on Thu Dec 22, 2011 2:21 pm

Hi,

I'm trying to replace .count(...) with .where(...).count using regex.

Thanks for your help.
steve
 
Posts: 1
Joined: Thu Dec 22, 2011 2:19 pm

Re: Regex: replace .count(...) with .where(...).count

Postby adzenith on Thu Dec 22, 2011 8:01 pm

Search for:
\.count\(([^)]*)\)
replace with
.where($1).count
adzenith
 
Posts: 1216
Joined: Mon Oct 19, 2009 9:12 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 28 guests