Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regex - multiline matching
#4
Uh oh, something went wrong. That code above worked when there was one match, but would erroneously grab all the text when I created test data that had multiple matches. See test data below. I already set it to save matches to an array and include multiple matches.

I'm not sure what else I need to do.

Code:
Copy      Help
1. SECTION: 5A.

2. SUGGESTED SECTION: None.

3. NAME: The "Use Odd Numbers".



2. SUGGESTED SECTION: 1111111111.

3. NAME: 56464g56df4gdf56g4df56g4564


2. SUGGESTED SECTION: 333333333333333.

3. NAME: 57856756767


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)