* * *

Author Topic: Find text  (Read 1262 times)


  • Jr. Member
  • **
  • Posts: 99
Re: Find text
« Reply #30 on: April 16, 2018, 11:00:44 pm »
OK, let me ask these: can you show me a version of this code that works as originally, but additionally...
Maybe try it yourself?
Read: https://www.regular-expressions.info/quickstart.html.
Test: https://regex101.com/.
I cannot get the proper regex for the case when
1.) there are no spaces between words, only a comma    >> Example: int var1,var2
2.) there are unknown number of spaces and a comma   >> Example: int var1 ,    var2

I need the formule that matches both of them.
For the 2.) I can use this
but it doesnt work with 1.)

Can you help me?
« Last Edit: April 16, 2018, 11:04:14 pm by justnewbie »



Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus