I-RegEx Escape kwi-Intanethi

Esi sixhobo sokubaleka se-intanethi se-regex siya kubaleka bonke abalinganiswa abakhethekileyo nge-backslash ukuze ukwazi ukusebenzisa umbhalo wakho / umtya / ipateni kwindlela eqhelekileyo yokubonakalisa - umsindi we-intanethi usebenzisa umsebenzi we-PHP preg_quote() .

Igalelo lakho:

Iziphumo, umbhalo obalekileyo:

Kwi-intanethi ye-regex ebalekayo:

  • I-RegEx Escape ye-C#
  • I-RegEx Escape ye-PHP
  • I-RegEx Escape yeJava
  • I-RegEx Escape yeJavaScript
  • Ukubaleka kweRegex yejs
  • RegEx ukubaleka JQL
  • I-RegEx Escape ye-SQL
  • Ukubaleka kweRegEx kulo naluphi na uhlobo lwekhowudi, umtya okanye ipateni

Bonisa

RegEx: Ngabaphi abalinganiswa ekufuneka babalekile?

Oonobumba abakhethekileyo be-RegEx ekumele ukubaleka ngokwentetho eqhelekileyo zezi:

  • .
  • \
  • +
  • *
  • ? [
  • ^
  • ]
  • $
  • (
  • )
  • {
  • }
  • =
  • !
  • <
  • >
  • |
  • :
  • -

Esi sixhobo sasimahla sokubaleka se-regex esikwi-intanethi sisebenzisa i- preg_quote () umsebenzi we-PHP ukukunceda ubaleke okubhaliweyo ukuze usetyenziswe kwiintetho eziqhelekileyo !