Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 django 中有一个简单的表单,我通过 GET 提交。
现在我在文本框中输入了这些数据dsadsadsadsadsa4325435;';',,,.,##$^*(((&(
dsadsadsadsadsa4325435;';',,,.,##$^*(((&(
在我的功能中,我有这条线
re.search(data, alltext)
现在我在那里出错nothing to repeat了。
nothing to repeat
我怎样才能filter / escape获得数据,以便我的那个功能可以正常工作
filter / escape
用于re.escape(your_string)转义任何在正则表达式中具有特殊含义的字符。
re.escape(your_string)