dgilland / pydash

The kitchen sink of Python utility libraries for doing "stuff" in a functional way. Based on the Lo-Dash Javascript library.
http://pydash.readthedocs.io
MIT License
1.32k stars 93 forks source link

how to use capture group in reg_exp_js_replace? #199

Closed WingDust closed 7 months ago

WingDust commented 1 year ago
print(pydash.reg_exp_js_replace("My name is John and I am 30 years old","/(30)/","$1222"))
dgilland commented 1 year ago

I'm not sure I understand your question. What are you trying to do?