Hello,
I want use this multi-line regex
array$[\t\n\r\s]*?\([\t\s]*?$
for searching array without "(" behind it, but next new line. The regex working fine in php or Online Regex tests. https://regex101.com/r/YyHZaU/1
In TextCrawler-Tool "Test Regular Expression" and "Find" its not working. I missing here somthing?
Question for Regex
- DigitalVolcano
- Site Admin
- Posts: 1863
- Joined: Thu Jun 09, 2011 10:04 am
Re: Question for Regex
Have you tried using the Multi line anchors option in TextCrawler?
If that doesn't work, can you provide an example string that you are trying to match?
Thanks!
If that doesn't work, can you provide an example string that you are trying to match?
Thanks!
Re: Question for Regex
Yes, I checked "Multi line anchors" option. You can use the text from my link for testing regex. ;)
Code: Select all
text array
text
text array
(
text array(
(
text array
(
text
text array
(
text
text (array
(
array
text array
(
text
- DigitalVolcano
- Site Admin
- Posts: 1863
- Joined: Thu Jun 09, 2011 10:04 am
Re: Question for Regex
This works as per the example
It doesn't seem to like the first line-ending ($) symbol in the original expression?
Code: Select all
array(\r\n|\r|\n)[\t\n\r\s]*?\([\t\s]*?$
- DigitalVolcano
- Site Admin
- Posts: 1863
- Joined: Thu Jun 09, 2011 10:04 am
Re: Question for Regex
Looks like a quirk in .NET Regular Expressions
https://stackoverflow.com/questions/861 ... match-crlf
https://stackoverflow.com/questions/861 ... match-crlf
Re: Question for Regex
Thanks for your help! That was it! :)